code: def ptensor_to_numpy(seq):
      return [t.data.numpy() for t in flatten(seq)]
  
file_path: BigDL/python/dllib/src/bigdl/dllib/utils/nest.py
imports: import six
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 2 for calling a global function with example usage: ptensor_to_numpy(seq) and returns: unknown