LoginSignup
2
0

More than 1 year has passed since last update.

tensorflow エラー  No algorithm worked!

Last updated at Posted at 2021-08-21

エラー

 No algorithm worked!

このエラーの原因は、CUDAなどのグラフィックボードに関係していることは、分かったんだが、あまりわからなかった。

解決法

これを書き込んで実行すると正常にうごいた。


from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import InteractiveSession

config = ConfigProto()
config.gpu_options.allow_growth = True
session = InteractiveSession(config=config)

2
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
2
0