How to convert the prediction of pytorch into normal text
I have a PyTorch model and i am doing prediction on it. After doing prediction i am getting the output as
tensor([[-3.4333]], grad_fn=&lt;AddmmBackward&gt;)

But i need it as normal integer -3.4333. How can i do it.

Call .item on your tensor to convert it to a standard python number.
