Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

AttributeError: module 'tensorflow' has no attribute 'flags' #1921

Open
za94205 opened this issue Dec 20, 2022 · 0 comments
Open

AttributeError: module 'tensorflow' has no attribute 'flags' #1921

za94205 opened this issue Dec 20, 2022 · 0 comments

Comments

@za94205
Copy link

za94205 commented Dec 20, 2022

Description:

Hey, guys:
I got something wrong about this, can anyone give me some suggestions?

This this the code:

%run run_classifier.py

AttributeError Traceback (most recent call last)
File ~\bert-gcn-for-paper-citation-master\run_classifier.py:30
26 import tensorflow.compat.v1 as tf
28 from utils import *
---> 30 flags = tf.flags
31 FLAGS = flags.FLAGS
33 ''' USE '''

AttributeError: module 'tensorflow' has no attribute 'flags'

Environment information:

OS: Windows 10 - 64bit

tensorflow 2.9.1
tensorflow-estimator 2.6.0
tensorflow-gpu 2.9.0
tensorflow-io-gcs-filesystem 0.28.0

Error logs:

AttributeError: module 'tensorflow' has no attribute 'flags'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant