Solved by tom in post #2 
              
              
                I don’t think this works directly right now. 
If you have compiled torch yourself, you see that in torch/csrc/autograd/generated/python_torch_functions.cpp the factory functions take the Python objects and unpacks them. 
The PyBind converters are only present for IntArrayRef and Tensor (toch/csrc/ut…