0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[tensorflow]label_image.pyのtf.Sessionでエラー発生

Posted at

環境

・centos6.5
・レンタルサーバ
・python3.6

エラー内容

label_image.pyを実行すると、tf.Session()のところで以下のエラーが出てしまう。

terminate called after throwing an instance of 'std::system_error'
  what():  Resource temporarily unavailable
Aborted

対応

config = tf.ConfigProto()
config.intra_op_parallelism_threads = 1
config.inter_op_parallelism_threads = 1


sess = tf.Session(config=config)
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?