how to check if data is on cuda pytroch code example Example: how to check weather my model is on gpu in pytorch Click to copynext(network.parameters()).device