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.

Tensorflow1.13.1->2.1へ GPU復活

0
Last updated at Posted at 2020-05-07

Tensorflow1.10で作成、1.13で作動確認できているプログラムが2.1で可能か検証する。
Anacondaブラウザからインストール。2.1にUpdateされているが、ターミナルpip listだとtensorflow-gpuは1.13のまま。
pip3 install --upgrade tensorflow-gpuで成功。
Tf2.1にて作動OK
ブラウザからインストール。3.6->3.7へアップデート
問題なく作動。(しかも超速い)
もしやGPUを認識したのでは?(tf1.13でGPUを認識しない問題もあり、このあと対処しようと思ってた)
その後諸事情からダウングレードをしたところ、pip,pip3でアップグレードできず。condauninstall, install実施。(5/11)
なんとか復旧。相変わらず混じってます。

$ python
>>>from tensorflow.python.client import device_lib
>>>device_lib.list_local_devices()

...中略    ↓↓↓↓ 
device_type: "GPU"
memory_limit: 4128768
locality {
  bus_id: 1
  links {
  }
}
incarnation: 5351681574950931512
physical_device_desc: "device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1"
, name: "/device:XLA_GPU:0"
device_type: "XLA_GPU"
memory_limit: 17179869184
locality {
}
incarnation: 14229584366238013314
physical_device_desc: "device: XLA_GPU device"
]

直った直った。めでたし

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?