-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error to parse FLAGS #127
Comments
same question |
@dingguijin ALLOW_SOFT_PLACEMENT=<absl.flags._flag.BooleanFlag object at 0x8f6a910> 2018-02-07 14:49:07.184974: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA |
the code did not updated since a year ago, use tensorflow 1.0.0 (pip install tensorflow==1.0.0) solve the problem "FLAGS._parse_flags() not support any longer use FLAGS(sys.argv) instead. (call the python object)". don't forget to use python3 because it is stated on the readme. |
I've encountered same problem. That's because original FLAGS is replaced with abseil's one. If you want to use original one, you need to use tensorflow <=1.4. Please check these links. |
@coffeedjimmy thanks . yeah i m also trying to fix that problem so that it can be run on tensorflow>=1.4. |
I still encountered this issue when running with tensorflow 1.5. Someone could help to overcome this issue on tensorflow 1.5? |
You can simply use Here is the reference code for better understanding. |
The problem seems to be machine dependant, I am using tensorflow 1.8. I did encounter the problem with FLAGS but using FLAGS(sys.argv) solved the problem for me. I am using a MacBook Pro: macOS High Sierra. Try running the code in a virtual environment. |
@coffeedjimmy could you elaborate more in the code please?! |
parser = argparse.ArgumentParser() #Eval Parameters #Misc Parameters FLAGS = parser.parse_args() |
In one of my projects FLAGS(sys.argv) seemed to fix the problem. |
This solution works for me! I'm using tensorflow=1.9. |
python 3.6 encountered an error should add a True value when running the eval command. |
python 2.7
tensorflow 1.4.0
FLAGS._parse_flags() not support any longer use FLAGS(sys.argv) instead. (call the python object)
The text was updated successfully, but these errors were encountered: