Can't get attribute '_rebuild_tensor_v2'

Hello,
i was running the code and then i got error below

Blockquote

pretrain_state_dict = torch.load(pretrain_file)

AttributeError: Can’t get attribute ‘_rebuild_tensor_v2’ on <module ‘torch._utils’ from ‘/usr/local/anaconda3/lib/python3.6/site-packages/torch/_utils.py’>

Blockquote

I installed my Pytorch3.0 from source and python 3.6.2
Does anyone know this problem? Thanks

I think this is a duplicate of Question about '_rebuild_tensor_v2'