| 140 | } |
| 141 | |
| 142 | static inline void BF16UnsupportedWarning() { |
| 143 | static absl::once_flag cpu_bfloat16_warn_once_flag; |
| 144 | absl::call_once(cpu_bfloat16_warn_once_flag, [] { |
| 145 | LOG(ERROR) << "oneDNN BFloat16 support are only on platforms with AVX512. " |
| 146 | "Falling back to default implementation if present."; |
| 147 | }); |
| 148 | } |
| 149 | |
| 150 | // Check whether opname with type T is registered as OneDNN operator |
| 151 | // that can accept input tensors in OneDNN layout. |
no outgoing calls
no test coverage detected