Closed evezhier closed 4 years ago
Can you confirm the TF version being used?
python3
import tensorflow
print(tensorflow.__version__)
What if you try running the import statement from the console?
python3
import tensorflow
from tensorflow.contrib import estimator
Does it succeed or raise the same error?
It raises the error. I've already tried pip-installing TFE 1.15.1, which is compatible with TF 1.15.2. Probably, some different version is required, as in https://github.com/tensorflow/tensorflow/issues/23163 In this case please update the requirements.
Did you install from requirements.txt? https://github.com/google-research/ALBERT/blob/master/requirements.txt has TF 1.15.2, which depends on tensorflow-estimator
pip package.
I can't reproduce the issue in my own environment, so I'm not sure what, if anything, to fix. Can you try setting up a new virtualenv and only use requirements.txt?
Checked it on another machine where TF was built from source, and it worked. Probably messed up conda or something. In any case, the issue is probably irrelevant, my bad. Thanks.
With all the dependencies installed from
requirements.txt
with pip when executingrun_pretraining.py
as the readme suggests, an error occurs:The problem seems to occur due to TF/estimator version inconsistency, could you provide any guidance?