!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:
mindspore-ci-bot 2021-05-09 09:43:40 +08:00 committed by Gitee
commit 65fcfe2207
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)