Try to pass keep_vars=True to net.state_dict(keep_vars=True) and it should work.
Since the default is set to False, the underlying data of the tensors will be returned and thus detached from the variable.