model = to_device(Network(), device) next(model.parameters()).device #check the model weather it is in gpu or cpu code example
Example: how to check weather my model is on gpu in pytorch
next(network.parameters()).device
next(network.parameters()).device