forked from mindspore-Ecosystem/mindspore
!16046 Enable acceleration by Graph Kernel for Wide&Deep base model.
From: @lishanni513 Reviewed-by: @gaoxiong1,@dylangeng Signed-off-by: @dylangeng
This commit is contained in:
commit
65fcfe2207
|
@ -89,5 +89,5 @@ if __name__ == "__main__":
|
|||
config = WideDeepConfig()
|
||||
config.argparse_init()
|
||||
|
||||
context.set_context(mode=context.GRAPH_MODE, device_target=config.device_target)
|
||||
context.set_context(mode=context.GRAPH_MODE, enable_graph_kernel=True, device_target=config.device_target)
|
||||
test_train(config)
|
||||
|
|
|
@ -106,6 +106,6 @@ if __name__ == "__main__":
|
|||
wide_deep_config = WideDeepConfig()
|
||||
wide_deep_config.argparse_init()
|
||||
|
||||
context.set_context(mode=context.GRAPH_MODE, device_target=wide_deep_config.device_target)
|
||||
context.set_context(mode=context.GRAPH_MODE, enable_graph_kernel=True, device_target=wide_deep_config.device_target)
|
||||
context.set_context(enable_sparse=wide_deep_config.sparse)
|
||||
test_train_eval(wide_deep_config)
|
||||
|
|
Loading…
Reference in New Issue