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

Method IsArray

tensorflow/compiler/xla/shape.h:57–57  ·  view source on GitHub ↗

Returns whether the shape is of the specified type (array, tuple, etc).

Source from the content-addressed store, hash-verified

55
56 // Returns whether the shape is of the specified type (array, tuple, etc).
57 bool IsArray() const { return primitive_util::IsArrayType(element_type()); }
58 bool IsTuple() const { return element_type() == TUPLE; }
59 bool IsToken() const { return element_type() == TOKEN; }
60 bool IsOpaque() const { return element_type() == OPAQUE_TYPE; }

Callers 15

CopyLiteralToHostTensorFunction · 0.45
IsScalarMethod · 0.45
IsEffectiveScalarMethod · 0.45
ConvertTypeFunction · 0.45
GetFirstScalarLiteralMethod · 0.45
dataMethod · 0.45
PopulateR1Method · 0.45
PopulateR2Method · 0.45
PopulateFromArrayMethod · 0.45
PopulateWithValueMethod · 0.45

Calls 1

IsArrayTypeFunction · 0.85

Tested by

no test coverage detected