更新 'inference.py'
This commit is contained in:
parent
df7c09155a
commit
ec7c16f505
|
@ -144,7 +144,7 @@ parser.add_argument('--device_target', type=str, default="Ascend", choices=['Asc
|
|||
help='device where the code will be implemented (default: Ascend)')
|
||||
|
||||
if __name__ == "__main__":
|
||||
args = parser.parse_args()
|
||||
args, unknown = parser.parse_known_args()
|
||||
### defining the training environment
|
||||
environment = 'train'
|
||||
workroot = WorkEnvironment(environment)
|
||||
|
|
Loading…
Reference in New Issue