What is loss.item()

Do you have a link discussing why (and what) there might be “unwanted side effects” more precisely?

Thanks!