Wont work, as i would be packaging the model and converting it to tf-lite and stuff…I figured out something that would work though:
model=model.cpu()
model.xyz=model.xyz.cpu()

While saving the weights