| 86 | } |
| 87 | |
| 88 | string StringifyShape(const TensorShape& shape) { |
| 89 | string result; |
| 90 | bool first = true; |
| 91 | for (const auto& dim : shape) { |
| 92 | if (first) { |
| 93 | first = false; |
| 94 | } else { |
| 95 | strings::StrAppend(&result, ","); |
| 96 | } |
| 97 | strings::StrAppend(&result, dim.size); |
| 98 | } |
| 99 | return result; |
| 100 | } |
| 101 | |
| 102 | Status CheckSupportedType(const Tensor& t) { |
| 103 | #define CASE(T) \ |
no test coverage detected