set_train_false

Signed-off-by: zhupuxu <zhupuxu@huawei.com>
This commit is contained in:
zhupuxu 2020-12-24 16:09:02 +08:00
parent 4df0baa6c7
commit 33dc7d3755
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ if __name__ == "__main__":
model_builder = ModelBuilder(ModelConfig, TrainConfig)
_, network = model_builder.get_train_eval_net()
network.set_train(False)
load_checkpoint(args.ckpt_file, net=network)