Skip to content

UnrecognizedFlagError: Unknown command line flag 'f' #5

@emnajaoua

Description

@emnajaoua

When I am trying to run the main file in my jupyter notebook. I face this error of unknown flag for gamma althought the gamma flag was defined previously from tf.app.flags.

The error is represented here


UnrecognizedFlagError Traceback (most recent call last)
in ()
----> 1 print(flags.gamma)

/opt/aiml4it/anaconda/3-5.2.0-generic/lib/python3.6/site-packages/tensorflow/python/platform/flags.py in getattr(self, name)
82 # a flag.
83 if not wrapped.is_parsed():
---> 84 wrapped(_sys.argv)
85 return wrapped.getattr(name)
86

/opt/aiml4it/anaconda/3-5.2.0-generic/lib/python3.6/site-packages/absl/flags/_flagvalues.py in call(self, argv, known_only)
628 suggestions = _helpers.get_flag_suggestions(name, list(self))
629 raise _exceptions.UnrecognizedFlagError(
--> 630 name, value, suggestions=suggestions)
631
632 self.mark_as_parsed()

UnrecognizedFlagError: Unknown command line flag 'f'

Any idea why I get this error. I searched in SO but nothing helpful so far

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions