提交 16b4bcbc 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!58 Optimize GetDatasize

Merge pull request !58 from jiangzhiwen/get_data_size
......@@ -99,8 +99,7 @@ if __name__ == "__main__":
# get training dataset
ds_train = generate_mnist_dataset(os.path.join(cfg.data_path, "train"),
cfg.batch_size,
cfg.epoch_size)
cfg.batch_size)
if cfg.micro_batches and cfg.batch_size % cfg.micro_batches != 0:
raise ValueError("Number of micro_batches should divide evenly batch_size")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册