[NNVM][TENSORFLOW] bugfix. (#2444)
This commit is contained in:
Родитель
a527b58e6d
Коммит
76188a43d0
|
@ -1193,6 +1193,9 @@ class GraphProto(object):
|
|||
self._output_shapes[node.name] = \
|
||||
[tensor_util.TensorShapeProtoToList( \
|
||||
tensor_value.tensor_shape)]
|
||||
elif shape and node.name in shape:
|
||||
# Give priority to user argument.
|
||||
self._output_shapes[node.name] = [shape[node.name]]
|
||||
elif '_output_shapes' in attr:
|
||||
self._output_shapes[node.name] = \
|
||||
[tensor_util.TensorShapeProtoToList(tshape) \
|
||||
|
|
Загрузка…
Ссылка в новой задаче