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

Function ContainersEqual

tensorflow/compiler/xla/util.h:202–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200// operator==. Like std::equal, but forces size equality.
201template <typename Container1T, typename Container2T>
202bool ContainersEqual(const Container1T& c1, const Container2T& c2) {
203 return ((c1.size() == c2.size()) &&
204 std::equal(std::begin(c1), std::end(c1), std::begin(c2)));
205}
206
207template <typename Container1T,
208 typename ElementType = typename Container1T::value_type>

Callers 1

TEST_FFunction · 0.85

Calls 2

equalFunction · 0.50
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.68