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

Method CheckDimsEqual

tensorflow/core/framework/tensor_shape.cc:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void TensorShape::CheckDimsEqual(int NDIMS) const {
44 CHECK_EQ(NDIMS, dims()) << "Asking for tensor of " << NDIMS << " dimensions"
45 << " from a tensor of " << dims() << " dimensions";
46}
47
48void TensorShape::CheckDimsAtLeast(int NDIMS) const {
49 CHECK_GE(NDIMS, dims()) << "Asking for tensor of at least " << NDIMS

Callers

nothing calls this directly

Calls 1

dimsFunction · 0.85

Tested by

no test coverage detected