code: def compute_Linear_madd(module, inp, out):
      assert isinstance(module, nn.Linear)
      assert len(inp.size()) == 2 and len(out.size()) == 2
  
      num_in_features = inp.size()[1]
      num_out_features = out.size()[1]
  
      mul = num_in_features
      add = num_in_features - 1
      return num_out_features * (mul + add)
  
file_path: tensorwatch/tensorwatch/model_graph/torchstat/compute_madd.py
imports: import torch.nn
label_desc: Use image node_id 8 for calling a global function with example usage: compute_Linear_madd(module, inp, out) and returns: unknown