| 864 | } |
| 865 | |
| 866 | bool 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 | |
| 881 | Status TensorShapeUtils::NumElements(gtl::ArraySlice<int64> shape, |
| 882 | int64* num_elements) { |
nothing calls this directly
no test coverage detected