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

Method IsEffectiveScalar

tensorflow/compiler/xla/shape_util.h:316–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

IsArrayMethod · 0.45

Tested by

no test coverage detected