Premium problem32. Cube Each Element

Easy Locked

Return x raised to the power 3, element-wise.

Input

tensor([1., 2., 3., 4.])

Output

tensor([ 1.,  8., 27., 64.])

Premium problem

This one's part of Premium. Unlock the full PyTorch track plus every other premium problem on the site.

Implement solve(...)