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

Function HigherMinimum

tensorflow/core/framework/op_def_util.cc:471–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471bool HigherMinimum(const OpDef::AttrDef& old_attr,
472 const OpDef::AttrDef& new_attr) {
473 // Anything -> no restriction : not more restrictive.
474 if (!new_attr.has_minimum()) return false;
475 // No restriction -> restriction : more restrictive.
476 if (!old_attr.has_minimum()) return true;
477 // If anything that was previously allowed is no longer allowed:
478 // more restrictive.
479 return new_attr.minimum() > old_attr.minimum();
480}
481
482string MinStr(const OpDef::AttrDef& attr) {
483 if (!attr.has_minimum()) return "no minimum";

Callers 1

OpDefCompatibleFunction · 0.85

Calls 1

minimumMethod · 0.80

Tested by

no test coverage detected