提交 ed1f237a 编写于 作者: M Michal W. Tarnowski 提交者: Liangliang He

Typename changed from uint32_t to int32_t (#315)

上级 27392cf0
......@@ -36,7 +36,7 @@ std::string DataTypeToString(const DataType dt) {
{DT_FLOAT, "DT_FLOAT"},
{DT_HALF, "DT_HALF"},
{DT_UINT8, "DT_UINT8"},
{DT_INT32, "DT_UINT32"}};
{DT_INT32, "DT_INT32"}};
MACE_CHECK(dt != DT_INVALID, "Not support Invalid data type");
return dtype_string_map[dt];
}
......@@ -50,7 +50,7 @@ size_t GetEnumTypeSize(const DataType dt) {
case DT_UINT8:
return sizeof(uint8_t);
case DT_INT32:
return sizeof(uint32_t);
return sizeof(int32_t);
default:
LOG(FATAL) << "Unsupported data type: " << dt;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册