提交 d9f6c64f 编写于 作者: D dengkaipeng

fix step_per_epoch

上级 c3d26b92
...@@ -77,7 +77,7 @@ def main(): ...@@ -77,7 +77,7 @@ def main():
step_per_epoch = int(len(train_dataset) / FLAGS.batch_size \ step_per_epoch = int(len(train_dataset) / FLAGS.batch_size \
/ ParallelEnv().nranks) / ParallelEnv().nranks)
optim = make_optimizer(len(train_dataset), model.parameters()) optim = make_optimizer(step_per_epoch, model.parameters())
inputs = [Input([None, 8, 3, 224, 224], 'float32', name='image')] inputs = [Input([None, 8, 3, 224, 224], 'float32', name='image')]
labels = [Input([None, 1], 'int64', name='label')] labels = [Input([None, 1], 'int64', name='label')]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册