how to access values from a tensor code example Example: tensor get value #print the value of tensor mytensor.item()