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

Method AreIdentical

tensorflow/core/framework/tensor_shape.cc:866–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866bool PartialTensorShapeUtils::AreIdentical(
867 const gtl::ArraySlice<PartialTensorShape>& shapes0,
868 const gtl::ArraySlice<PartialTensorShape>& shapes1) {
869 if (shapes0.size() == shapes1.size()) {
870 for (size_t i = 0; i < shapes0.size(); ++i) {
871 if (!shapes0[i].IsIdenticalTo(shapes1[i])) {
872 return false;
873 }
874 }
875 return true;
876 } else {
877 return false;
878 }
879}
880
881Status TensorShapeUtils::NumElements(gtl::ArraySlice<int64> shape,
882 int64* num_elements) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
IsIdenticalToMethod · 0.45

Tested by

no test coverage detected