提交 7bc38706 编写于 作者: L liyin

Fix case output type

上级 a04029b8
......@@ -1007,11 +1007,11 @@ class TensorflowConverter(base_converter.ConverterInterface):
if dtype == tf.int32:
op.output_type.extend([mace_pb2.DT_INT32])
elif dtype == tf.float32:
op.output_type.extend([self._option.data_type])
op.output_type.extend([mace_pb2.DT_FLOAT])
else:
mace_check(False, "data type %s not supported" % dtype)
except ValueError:
op.output_type.extend([self._option.data_type])
op.output_type.extend([mace_pb2.DT_FLOAT])
def convert_argmax(self, tf_op):
op = self.convert_general_op(tf_op)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册