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

Function IsSubsetOf

tensorflow/core/framework/op_def_util.cc:428–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426// Returns true if every element of `sub` is contained in `super`.
427template <class T>
428bool IsSubsetOf(const T& sub, const T& super) {
429 for (const auto& o : sub) {
430 bool found = false;
431 for (const auto& n : super) {
432 if (o == n) {
433 found = true;
434 break;
435 }
436 }
437 if (!found) return false;
438 }
439 return true;
440}
441
442bool MoreRestrictive(const OpDef::AttrDef& old_attr,
443 const OpDef::AttrDef& new_attr) {

Callers 1

MoreRestrictiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected