返回顶部 get_data_type 功能说明获取张量数据类型。 函数原型1get_data_type() -> DataType 参数说明无 返回值说明(DataType)张量数据类型。 约束说明如果返回值不是有效的 DataType,抛出ValueError。 父主题: Tensor