| // Set of global constants that could be shareable between CPU and Metal code | |
| _(Byte, 0) \ | |
| _(Char, 1) \ | |
| _(Short, 2) \ | |
| _(Int, 3) \ | |
| _(Long, 4) \ | |
| _(Half, 5) \ | |
| _(Float, 6) \ | |
| _(ComplexHalf, 8) \ | |
| _(ComplexFloat, 9) \ | |
| _(Bool, 11) \ | |
| _(BFloat16, 15) | |
| _(Byte, 0) \ | |
| _(Char, 1) \ | |
| _(Short, 2) \ | |
| _(Int, 3) \ | |
| _(Long, 4) \ | |
| _(Half, 5) \ | |
| _(Float, 6) \ | |
| _(ComplexHalf, 8) \ | |
| _(ComplexFloat, 9) \ | |
| _(Bool, 11) | |
| namespace c10 { | |
| namespace metal { | |
| C10_METAL_CONSTEXPR unsigned max_ndim = 16; | |
| enum class ScalarType { | |
| C10_METAL_ALL_TYPES_FUNCTOR(_DEFINE_ENUM_VAL_) | |
| }; | |
| } // namespace metal | |
| } // namespace c10 | |