Proper way to assign tensor to a Parameter

Yup, not sure of the use actual use case but there’s a similar thread here.