提交 228a1b87 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2387 dataset=False when run in CPU

Merge pull request !2387 from wukesong/cpu-lenet-sink-true
......@@ -40,6 +40,9 @@ if __name__ == "__main__":
args = parser.parse_args()
if args.device_target == "CPU":
args.dataset_sink_mode = False
context.set_context(mode=context.GRAPH_MODE, device_target=args.device_target)
ds_train = create_dataset(os.path.join(args.data_path, "train"),
cfg.batch_size,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册