parameters: (self, name)
docstring: Returns the value of the attr of this op with the given `name`.
  
      Args:
        name: The name of the attr to fetch.
  
      Returns:
        The value of the attr, as a Python object.
  
      Raises:
        ValueError: If this op does not have an attr with the given `name`.
docstring_summary: Returns the value of the attr of this op with the given `name`.
docstring_tokens: Returns the value of the attr of this op with the given name .
function: def get_attr(self, name):
      """Returns the value of the attr of this op with the given `name`.
  
      Args:
        name: The name of the attr to fetch.
  
      Returns:
        The value of the attr, as a Python object.
  
      Raises:
        ValueError: If this op does not have an attr with the given `name`.
      """
      fields = ["s", "i", "f", "b", "type", "shape", "tensor"]
      if name not in self._node_def.attr:
        raise ValueError("No attr named '" + name + "' in " +
                         str(self._node_def))
      x = self._node_def.attr[name]
      # Treat an empty oneof value as an empty list.
      if not x.WhichOneof("value"):
        return []
      if x.HasField("list"):
        for f in fields:
          if getattr(x.list, f):
            return list(getattr(x.list, f))
        return []
      else:
        for f in fields:
          if x.HasField(f):
            return getattr(x, f)
        assert False, "Unsupported field type in " + str(x)
function_tokens: def get_attr ( self , name ) : fields = [ "s" , "i" , "f" , "b" , "type" , "shape" , "tensor" ] if name not in self . _node_def . attr : raise ValueError ( "No attr named '" + name + "' in " + str ( self . _node_def ) ) x = self . _node_def . attr [ name ] # Treat an empty oneof value as an empty list. if not x . WhichOneof ( "value" ) : return [ ] if x . HasField ( "list" ) : for f in fields : if getattr ( x . list , f ) : return list ( getattr ( x . list , f ) ) return [ ] else : for f in fields : if x . HasField ( f ) : return getattr ( x , f ) assert False , "Unsupported field type in " + str ( x )