class_docstr: This implement Message for graph.recv.
  
  Args:
  
      msg: A dictionary provided by send function.
  
      segment_ids: The id that the message belongs to.
class_docstr_tok: ["This","implement","Message","for","graph.recv",".","Args",":","msg",":","A","dictionary","provided","by","send","function",".","segment_ids",":","The","id","that","the","message","belongs","to","."]
docstr: This method reduce message by max. 
  
  Args:
  
      feature (paddle.Tensor): feature with first dim as num_edges.
  
  Returns:
  
      Returns a paddle.Tensor with the first dim the same as the largest segment_id.
docstr_tok: ["This","method","reduce","message","by","max",".","Args",":","feature","(","paddle.Tensor",")",":","feature","with","first","dim","as","num_edges",".","Returns",":","Returns","a","paddle.Tensor","with","the","first","dim","the","same","as","the","largest","segment_id","."]
code: def reduce_max(self, msg):
      """This method reduce message by max.
  
      Args:
  
          feature (paddle.Tensor): feature with first dim as num_edges.
  
      Returns:
  
          Returns a paddle.Tensor with the first dim the same as the largest segment_id.
      """
      return math.segment_max(msg, self._segment_ids)
  
file_path: PGL/pgl/message.py
imports: import paddle
  import pgl.math
label_desc: Use image node_id 5 for calling the Message obj's underlying member method code with example usage: obj.reduce_max(msg) and returns: math