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

Method dimensions

tensorflow/compiler/xla/python_api/xla_shape.py:77–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 return self.element_type() == xla_data_pb2.TUPLE
76
77 def dimensions(self):
78 if self.is_tuple():
79 raise ValueError('Tuple shape has no dimensions. Try tuple_shapes()?')
80 return self.message.dimensions
81
82 def tuple_shapes(self):
83 """If this is a tuple, returns its sequence of constituent Shape objects.

Callers 15

AddBroadcastSequenceMethod · 0.45
BinaryOpMethod · 0.45
TernaryOpMethod · 0.45
ConstantLiteralMethod · 0.45
BroadcastInDimMethod · 0.45
SliceInDimMethod · 0.45
CollapseMethod · 0.45
ConvGeneralDilatedMethod · 0.45
ReduceWindowMethod · 0.45
AllToAllMethod · 0.45
SelectAndScatterMethod · 0.45

Calls 1

is_tupleMethod · 0.95

Tested by 13

ComputeMatmulVWVtMethod · 0.36
MakeGeneralPaddingFunction · 0.36
BuildFakeDataOpOnDeviceFunction · 0.36
testShapeMethod · 0.36
testTupleShapeMethod · 0.36
XLA_TEST_FFunction · 0.36
XLA_TEST_PFunction · 0.36
UniformTestMethod · 0.36