Closed ghost closed 4 years ago
I installed the Ternsorflow and used "make" to run examples
tf.app.flags.DEFINE_string('f', '', 'kernel')#添加的,不报错
Can you try with tensorflow-gpu==1.1.0
(that's the version I used to develop the code).
Duplicate of #27.
UnrecognizedFlagError Traceback (most recent call last)
<ipython-input-3-0b079301697c> in <module>
1 # Fetch dataset. Scikit-learn already performs some cleaning.
2 remove = ('headers','footers','quotes') # (), ('headers') or ('headers','footers','quotes')
----> 3 train = utils.Text20News(data_home=FLAGS.dir_data, subset='train', remove=remove)
4
5 # Pre-processing: transform everything to a-z and whitespace.
~/opt/anaconda3/envs/gnn/lib/python3.7/site-packages/tensorflow_core/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/anaconda3/envs/gnn/lib/python3.7/site-packages/absl/flags/_flagvalues.py in __call__(self, argv, known_only)
631 suggestions = _helpers.get_flag_suggestions(name, list(self))
632 raise _exceptions.UnrecognizedFlagError(
--> 633 name, value, suggestions=suggestions)
634
635 self.mark_as_parsed()
UnrecognizedFlagError: Unknown command line flag 'HistoryManager.hist_file'
UnrecognizedFlagError: Unknown command line flag 'HistoryManager.hist_file'
what's wrong with it ?
Please try with tensorflow-gpu==1.1.0
or the solution posted at https://github.com/mdeff/cnn_graph/issues/27#issuecomment-416582356.