class_docstr: Use 2-norm of gradient to judge whether converge or not.
class_docstr_tok: ["Use","2-norm","of","gradient","to","judge","whether","converge","or","not","."]
code: def set_pre_weight(self, weight):
      self.pre_weight = weight
  
file_path: FATE/python/fate/ml/utils/_convergence.py
imports: import logging
  import torch
label_desc: Use image node_id 2 for calling the _WeightDiffConverge obj's underlying member method code with example usage: obj.set_pre_weight(weight) without return types