LoginSignup
5
4

More than 5 years have passed since last update.

jupyter notebook / UnrecognizedFlagError: Unknown command line flag 'f'

Posted at

google colabolatoryやjupyter notebbok上で
tf.flagsを含むコードを実行しようとすると
UnrecognizedFlagErrorUnknown command line flag 'f'
が出現します。

いろいろ検索してみると、下記に解決策を見つけました。

https://github.com/tensorflow/tensorflow/issues/17702
image.png

tf.app.flags.DEFINE_string('f', '', 'kernel')
を一行加えてあげるとエラーが回避されるようです。
定義されてないと怒られるなら定義してしまえと逆転の発想ですね!

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4