code: def torch_total_param_num(net):
      return sum([np.prod(p.shape) for p in net.parameters()])
  
file_path: dgl/examples/pytorch/gcmc/utils.py
imports: import csv
  import re
  from collections import OrderedDict
  import numpy
  import torch
  import torch.nn
  import torch.optim
label_desc: Use image node_id 1 for calling a global function with example usage: torch_total_param_num(net) and returns: sum