| 314 | return shape.IsArray() && shape.rank() == 0; |
| 315 | } |
| 316 | static bool IsEffectiveScalar(const Shape& shape) { |
| 317 | return shape.IsArray() && TrueRank(shape) == 0; |
| 318 | } |
| 319 | |
| 320 | // Returns whether "shape" is a scalar (array) with the given element_type. |
| 321 | static bool IsScalarWithElementType(const Shape& shape, |