THPVariable_Wrap(Variable var) in https://github.com/pytorch/pytorch/blob/63214b572b6a18f7328687ca69420f0be0eaaaa9/torch/csrc/autograd/python_variable.cpp#L64-L76 116 is how we wrap a Variable (can be cast from torch::Tensor) into a Python object. Using Boost.Python there might be a way to pass the Variable C++ object to Python and construct the Python object.