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

Method GetDimension

tensorflow/core/util/mkl_util.h:321–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 data_.dimension_ = dimension;
320 }
321 inline size_t GetDimension(char dimension) const {
322 int index = GetMklDnnTensorDimIndex(dimension);
323 CHECK(index >= 0 && index < this->GetDimension())
324 << "Invalid index from the dimension: " << index << ", " << dimension;
325 return this->DimSize(index);
326 }
327
328 inline size_t GetDimension3D(char dimension) const {
329 int index = GetMklDnnTensor3DDimIndex(dimension);

Callers 15

GetDimension3DMethod · 0.95
ComputeMethod · 0.45
SanityCheckInputsMethod · 0.45
ComputeMethod · 0.45
SanityCheckInputsMethod · 0.45
SanityCheckInputMethod · 0.45
ComputeMethod · 0.45
ComputeMethod · 0.45
ComputeMethod · 0.45
ComputeMethod · 0.45
ComputeMethod · 0.45
ComputeMethod · 0.45

Calls 1

DimSizeMethod · 0.95

Tested by

no test coverage detected