Thanks for your answer.
I tied it and It is not possible
it gave me this error:
AttributeError: Can't get attribute '_rebuild_tensor_v2' on <module 'torch._utils' from '/home/alireza/anaconda3/lib/python3.6/site-packages/torch/_utils.py'>