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

Method IsSameSize

tensorflow/core/framework/tensor_shape_test.cc:456–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456bool TensorShapeOld::IsSameSize(const TensorShapeOld& b) const {
457 if (b.dims() != dims()) return false;
458 for (int d = 0; d < dims(); d++) {
459 if (dim_size(d) != b.dim_size(d)) return false;
460 }
461 return true;
462}
463
464void TensorShapeOld::AsProto(TensorShapeProto* proto) const {
465 proto->Clear();

Callers

nothing calls this directly

Calls 3

dimsFunction · 0.85
dimsMethod · 0.45
dim_sizeMethod · 0.45

Tested by

no test coverage detected