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

!3094 net_parameter_init

Merge pull request !3094 from mindspore_ding/new_ding_parameter_mind
......@@ -424,6 +424,7 @@ def export(net, *inputs, file_name, file_format='GEIR'):
if is_training:
net.set_train(mode=False)
# export model
net.init_parameters_data()
if file_format == 'GEIR':
_executor.compile(net, *inputs, phase='export')
_executor.export(net, file_name, file_format)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册