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

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

@za94205

Description

@za94205

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions