提交 89d94e13 编写于 作者: A AUTOMATIC

rename --channelslast to --opt-channelslast to be in line with other torch optimizations

上级 a5a760a7
......@@ -49,7 +49,7 @@ def load_model_from_config(config, ckpt, verbose=False):
if len(u) > 0 and verbose:
print("unexpected keys:")
print(u)
if cmd_opts.channelslast:
if cmd_opts.opts_channelslast:
model = model.to(memory_format=torch.channels_last)
model.eval()
return model
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册