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

Method IsSameSize

tensorflow/core/framework/tensor_shape.cc:583–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583bool TensorShape::IsSameSize(const TensorShape& b) const {
584 if (b.dims() != dims()) return false;
585 for (int d = 0; d < dims(); d++) {
586 if (dim_size(d) != b.dim_size(d)) return false;
587 }
588 return true;
589}
590
591template <class Shape>
592void TensorShapeBase<Shape>::AsProto(TensorShapeProto* proto) const {

Callers 15

ComputeMethod · 0.45
BroadcastOpsToSameFunction · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45
CompileMethod · 0.45

Calls 3

dimsFunction · 0.85
dimsMethod · 0.45
dim_sizeMethod · 0.45

Tested by 10

TensorsAreCloseFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
SetUpMethod · 0.36
AssertSameTypeDimsFunction · 0.36
TEST_FFunction · 0.36
RunTestMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
IsEqualFunction · 0.36