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

Method IsIdenticalTo

tensorflow/core/framework/tensor_shape.cc:816–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816bool PartialTensorShape::IsIdenticalTo(const PartialTensorShape& shape) const {
817 if (unknown_rank() || shape.unknown_rank()) {
818 return unknown_rank() == shape.unknown_rank();
819 }
820 if (dims() != shape.dims()) return false;
821 for (int i = 0; i < dims(); i++) {
822 if (dim_size(i) != shape.dim_size(i)) return false;
823 }
824 return true;
825}
826
827bool PartialTensorShape::IsCompatibleWith(
828 const PartialTensorShape& shape) const {

Callers 7

TESTFunction · 0.45
AreIdenticalMethod · 0.45
ComputeMethod · 0.45
TEST_PFunction · 0.45
TEST_FFunction · 0.45
TEST_PFunction · 0.45
PrintTensorShapeFunction · 0.45

Calls 4

dimsFunction · 0.85
unknown_rankMethod · 0.80
dimsMethod · 0.45
dim_sizeMethod · 0.45

Tested by 4

TESTFunction · 0.36
TEST_PFunction · 0.36
TEST_FFunction · 0.36
TEST_PFunction · 0.36