cumm icon indicating copy to clipboard operation
cumm copied to clipboard

how to convert a pytorch tenser to a cumm.core_cc.tensorview_bind.Tensor?

Open Liu-Wendao opened this issue 3 years ago • 0 comments

hi, I tried to convert a pytorch tensor to a cumm.core_cc.tensorview_bind.Tensor using tensor.cpu().detech().numpy() and tensorview.from_numpy(), but the gradient that I need will be lost. So, how can I convert a pytorch tensor to a cumm.core_cc.tensorview_bind.Tensor without losing gradient ? Thanks.

Liu-Wendao avatar May 19 '22 02:05 Liu-Wendao