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 compute_weight_diff(delta_weight):
      weight_diff = torch.linalg.norm(delta_weight, 2)
      return weight_diff
  
file_path: FATE/python/fate/ml/utils/_convergence.py
imports: import logging
  import torch
label_desc: Use image node_id 3 for calling the _WeightDiffConverge obj's underlying member method code with example usage: obj.compute_weight_diff(delta_weight) and returns: weight_diff