已合并
stateless_random_normal_v2 support bf16 #1907
Ding_Jing创建于 3月26日
stateless_random_normal_v2 support bf16 #1907
已合并
共 5 个文件变更+9-9
| @@ -34,7 +34,7 @@ extern "C" { | |||
| 34 | static constexpr size_t MAX_DIM_LEN = 8; | 34 | static constexpr size_t MAX_DIM_LEN = 8; |
| 35 | 35 | ||
| 36 | static const std::initializer_list<op::DataType> DTYPE_SUPPORT_LIST = { | 36 | static const std::initializer_list<op::DataType> DTYPE_SUPPORT_LIST = { |
| 37 | - op::DataType::DT_FLOAT16, op::DataType::DT_FLOAT, op::DataType::DT_DOUBLE}; | 37 | + op::DataType::DT_BF16, op::DataType::DT_FLOAT16, op::DataType::DT_FLOAT, op::DataType::DT_DOUBLE}; |
| 38 | 38 | ||
| 39 | /* 查看TensorFloat的Dtype和Shape */ | 39 | /* 查看TensorFloat的Dtype和Shape */ |
| 40 | static bool CheckTensorAndFloatDtype(const aclTensor* mean, const aclTensor* out) | 40 | static bool CheckTensorAndFloatDtype(const aclTensor* mean, const aclTensor* out) |