code: def run_addmm(X, weight, bias):
      torch.cuda.synchronize()
      start = time.time()
      for i in range(N):
          x = X[i % 10]
          x_2d = x.contiguous().view(-1, x.size(-1))
          U = torch.addmm(bias, x_2d, weight)
          loss = U.mean()
          loss.backward()
      torch.cuda.synchronize()
      print("addmm() takes: {}".format(time.time() - start))
  
file_path: sru/misc/test_mm.py
imports: import time
  import torch
  import torch.nn
label_desc: Use image node_id 3 for calling a global function with example usage: run_addmm(X, weight, bias) without return types