code: def to_numpy(var):
      use_cuda = torch.cuda.is_available()
      return var.cpu().data.numpy() if use_cuda else var.data.numpy()
  
file_path: auptimizer/src/aup/compression/torch/pruning/amc/lib/utils.py
imports: import os
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: to_numpy(var) and returns: unknown