forked from mindspore-Ecosystem/mindspore
!18045 [GraphKernel]Enable Graph Kernel for FasterRCNN on GPU Device
Merge pull request !18045 from jiaoy1224/enable
This commit is contained in:
commit
984e353afa
|
@ -53,6 +53,8 @@ args_opt = parser.parse_args()
|
|||
context.set_context(mode=context.GRAPH_MODE, device_target=args_opt.device_target, device_id=args_opt.device_id)
|
||||
|
||||
if __name__ == '__main__':
|
||||
if args_opt.device_target == "GPU":
|
||||
context.set_context(enable_graph_kernel=True)
|
||||
if args_opt.run_distribute:
|
||||
if args_opt.device_target == "Ascend":
|
||||
rank = args_opt.rank_id
|
||||
|
|
Loading…
Reference in New Issue