Return x raised to the power 3, element-wise.
x
Input
tensor([1., 2., 3., 4.])
Output
tensor([ 1., 8., 27., 64.])
This one's part of Premium. Unlock the full PyTorch track plus every other premium problem on the site.
solve(...)