parameters: (op_def, attr_name, attr_value)
return_statement: return False
docstring: Checks if given attribute matches the default value in the op def.
docstring_summary: Checks if given attribute matches the default value in the op def.
docstring_tokens: Checks if given attribute matches the default value in the op def .
function: def _is_default_attr_value(op_def, attr_name, attr_value):
    """Checks if given attribute matches the default value in the op def."""
    for attr_def in op_def.attr:
      if attr_def.name == attr_name:
        if not attr_def.HasField("default_value"):
          return False
        # pywrap_tensorflow.EqualAttrValueWrapper returns an empty string
        # if both arguments represent an equivalent AttrValue instance.
        return not pywrap_tensorflow.EqualAttrValueWrapper(
            attr_value.SerializeToString(),
            attr_def.default_value.SerializeToString())
    return False
function_tokens: def _is_default_attr_value ( op_def , attr_name , attr_value ) : for attr_def in op_def . attr : if attr_def . name == attr_name : if not attr_def . HasField ( "default_value" ) : return False # pywrap_tensorflow.EqualAttrValueWrapper returns an empty string # if both arguments represent an equivalent AttrValue instance. return not pywrap_tensorflow . EqualAttrValueWrapper ( attr_value . SerializeToString ( ) , attr_def . default_value . SerializeToString ( ) ) return False