torch.save(net, 'a')  saves the code and the parameters using pickle. U can view this as saving a python function/object using pickle. U got the warnings probably because most pytorch functions are written in C++ instead of python.
torch.save(net.state_dict(), 'a') saves the model’s parameters in the file. net.state_dict() returns the parameters in a dict object.