SyntaxFix
Write A Post
Hire A Developer
Questions
You can use this syntax if some grads are attached with your variables.
y=torch.Tensor.cpu(x).detach().numpy()[:,:,:,-1]