| 87 | using Node_ptr = std::shared_ptr<Node>; |
| 88 | |
| 89 | static const char *getFullName(af::dtype type) { |
| 90 | switch (type) { |
| 91 | case f32: return detail::getFullName<float>(); |
| 92 | case f64: return detail::getFullName<double>(); |
| 93 | case c32: return detail::getFullName<detail::cfloat>(); |
| 94 | case c64: return detail::getFullName<detail::cdouble>(); |
| 95 | case u32: return detail::getFullName<unsigned>(); |
| 96 | case s32: return detail::getFullName<int>(); |
| 97 | case u64: return detail::getFullName<unsigned long long>(); |
| 98 | case s64: return detail::getFullName<long long>(); |
| 99 | case u16: return detail::getFullName<unsigned short>(); |
| 100 | case s16: return detail::getFullName<short>(); |
| 101 | case b8: return detail::getFullName<char>(); |
| 102 | case s8: return detail::getFullName<signed char>(); |
| 103 | case u8: return detail::getFullName<unsigned char>(); |
| 104 | case f16: return "half"; |
| 105 | } |
| 106 | return ""; |
| 107 | } |
| 108 | |
| 109 | static const char *getShortName(af::dtype type) { |
| 110 | switch (type) { |