update modelzoo alexnet

This commit is contained in:
VectorSL 2020-11-03 18:31:27 +08:00
parent 1df488c1b1
commit 69eb38e9bc
1 changed files with 1 additions and 1 deletions

View File

@ -76,8 +76,8 @@ if __name__ == "__main__":
gradients_mean=True)
init()
elif device_target == "GPU":
init()
if device_num > 1:
init()
context.reset_auto_parallel_context()
context.set_auto_parallel_context(device_num=device_num, parallel_mode=ParallelMode.DATA_PARALLEL,
gradients_mean=True)