dataset sink is false when run in CPU

This commit is contained in:
wukesong 2020-06-20 11:28:57 +08:00
parent 067a838e87
commit fafa0d73fc
1 changed files with 3 additions and 0 deletions

View File

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