lbe0613 / LET

Source code for paper "LET: Linguistic Knowledge Enhanced Graph Transformer for Chinese Short Text Matching", AAAI2021.
MIT License
48 stars 4 forks source link

cannot import name 'replace_file' #2

Closed Gemini77 closed 3 years ago

Gemini77 commented 3 years ago

what's wrong with ImportError:cannot import name 'replace_file' from ‘mxnet.gluon.utils’

lbe0613 commented 3 years ago

what's wrong with ImportError:cannot import name 'replace_file' from ‘mxnet.gluon.utils’

Maybe it's because the mxnet version is different, so please use mxnet==1.5.1

GoddessLuBoYan commented 3 years ago

I download mxnet-cu100==1.6.0 from https://dist.mxnet.io/python/all and it works. However, I can not work with mxnet-cu100==1.5.1

lbe0613 commented 3 years ago

I revisited my environment, the mxnet version I used is 1.5.1.post0. Also, I created a new conda environment and installed mxnet by pip install mxnet-cu100==1.5.1 from Tsinghua Open Source Mirror (https://pypi.tuna.tsinghua.edu.cn/simple). It works well, so I decide to close this issue.