Which package do you mean torch? I only know how to use python <myscript.py> which imports the packages
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as init
Now, I use from times to times gdb (trace back) for my C++ applications but not for python code…