MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IsScalar

Method IsScalar

tensorflow/compiler/xla/shape_util.h:313–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 // Scalar-specific
312
313 static bool IsScalar(const Shape& shape) {
314 return shape.IsArray() && shape.rank() == 0;
315 }
316 static bool IsEffectiveScalar(const Shape& shape) {
317 return shape.IsArray() && TrueRank(shape) == 0;
318 }

Callers

nothing calls this directly

Calls 2

IsArrayMethod · 0.45
rankMethod · 0.45

Tested by

no test coverage detected