提交 b758fa50 编写于 作者: H hjchen2

fix github issue 15267 test=develop

上级 e33427da
...@@ -8479,8 +8479,7 @@ def shape(input): ...@@ -8479,8 +8479,7 @@ def shape(input):
""" """
helper = LayerHelper('shape', **locals()) helper = LayerHelper('shape', **locals())
out = helper.create_variable_for_type_inference( out = helper.create_variable_for_type_inference(dtype='int32')
dtype=helper.input_dtype('input'))
helper.append_op( helper.append_op(
type='shape', inputs={'Input': input}, outputs={'Out': out}) type='shape', inputs={'Input': input}, outputs={'Out': out})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册