class_docstr: Parent class for bias direction classes.
  
  # Parameters
  
  requires_grad : `bool`, optional (default=`False`)
      Option to enable gradient calculation.
class_docstr_tok: ["Parent","class","for","bias","direction","classes",".","#","Parameters","requires_grad",":","`","bool","`",",","optional","(","default=","`","False","`",")","Option","to","enable","gradient","calculation","."]
code: def _normalize_bias_direction(self, bias_direction: torch.Tensor):
      return bias_direction / torch.linalg.norm(bias_direction)
  
file_path: allennlp/allennlp/fairness/bias_direction.py
imports: import torch
  import sklearn
  import numpy
  from allennlp.common.checks import ConfigurationError
label_desc: Use image node_id 2 for calling the BiasDirection obj's underlying member method code with example usage: obj._normalize_bias_direction(bias_direction) and returns: unknown