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

Method dim

tensorflow/compiler/xla/array.h:405–408  ·  view source on GitHub ↗

Returns the size of the dimension at the given index.

Source from the content-addressed store, hash-verified

403
404 // Returns the size of the dimension at the given index.
405 int64 dim(int64 n) const {
406 CHECK((size_t)n < sizes_.size());
407 return sizes_[n];
408 }
409
410 // Returns a vector containing the dimensions of the array.
411 const std::vector<int64>& dimensions() const { return sizes_; }

Callers 15

GetShapeValueFunction · 0.45
HasDynamicShapeOutputFunction · 0.45
Proto2TensorFunction · 0.45
mainFunction · 0.45
printFBMethod · 0.45
mainFunction · 0.45
CreateTensorFunction · 0.45
Proto2TensorFunction · 0.45
ShapeToPythonFunction · 0.45
SetOpAttrListDefaultFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 15

Proto2TensorFunction · 0.36
mainFunction · 0.36
printFBMethod · 0.36
mainFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
IsValidMethod · 0.36
IsValidShapeMethod · 0.36
TensorShapeOldMethod · 0.36
DebugStringMethod · 0.36