forked from mindspore-Ecosystem/mindspore
open graph_kernel flag in mobilenet v3
This commit is contained in:
parent
6bbbfe32a5
commit
b5d08986cc
|
@ -160,6 +160,7 @@ if __name__ == '__main__':
|
||||||
config_ = None
|
config_ = None
|
||||||
if args_opt.device_target == "GPU":
|
if args_opt.device_target == "GPU":
|
||||||
config_ = config_gpu
|
config_ = config_gpu
|
||||||
|
context.set_context(enable_graph_kernel=True)
|
||||||
elif args_opt.device_target == "CPU":
|
elif args_opt.device_target == "CPU":
|
||||||
config_ = config_cpu
|
config_ = config_cpu
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue