| 141 | |
| 142 | namespace { |
| 143 | bool IsScalar(const TensorT& tensor) { |
| 144 | // TODO(b/138222071) We can't distinguish scalars and unranked tensors |
| 145 | // Work out a way to handle this and stub out the code until then |
| 146 | return tensor.shape.empty() && false; |
| 147 | } |
| 148 | |
| 149 | bool IsQuantized(const TensorT& tensor) { |
| 150 | return (tensor.quantization != nullptr) && |