GetDataType 函数功能获取Tensor的数据类型。 函数原型ge::DataType GetDataType() const 参数说明无。 返回值说明返回Tensor中的数据类型。 关于ge::DataType的定义,请参见ge:DataType。 约束说明无。 调用示例StorageShape sh({1, 2, 3}, {1, 2, 3}); Tensor t = {sh, {}, {}, ge::DT_FLOAT, nullptr}; auto dt = t.GetDataType(); // ge::DT_FLOAT 父主题: Tensor类