forked from mindspore-Ecosystem/mindspore
!2387 dataset=False when run in CPU
Merge pull request !2387 from wukesong/cpu-lenet-sink-true
This commit is contained in:
commit
228a1b87f8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue