| 89 | return result; |
| 90 | } |
| 91 | |
| 92 | std::string TensorShape::to_string() const { |
| 93 | std::ostringstream out; |
| 94 | out << "["; |
| 95 | for (size_t i = 0; i < rank; ++i) { |
| 96 | if (i > 0) { |
| 97 | out << ", "; |
| 98 | } |
| 99 | out << dims[i]; |
| 100 | } |
| 101 | out << "]"; |
| 102 | return out.str(); |
| 103 | } |
| 104 | |
| 105 | bool TensorValue::valid() const noexcept { |