| 65 | |
| 66 | template<class T> |
| 67 | std::string ConstShapeMixIn<T>::ToString() const { |
| 68 | std::stringstream ss; |
| 69 | int32_t idx = 0; |
| 70 | ss << "("; |
| 71 | for (int64_t dim : *tp()) { |
| 72 | ss << dim; |
| 73 | if (++idx != tp()->size() || tp()->size() == 1) { ss << ","; } |
| 74 | } |
| 75 | ss << ")"; |
| 76 | return ss.str(); |
| 77 | } |
| 78 | |
| 79 | template<class T> |
| 80 | std::string ConstShapeMixIn<T>::DebugStr() const { |
no test coverage detected