close

嘗試著在Tensorlfow2.0底下跑Capsnet可是一直找不到能用的專案

自己寫好像要花很多時間

在這邊紀錄Debug的步驟之類的還有嘗試了哪些專案

大概是這樣

1.module 'tensorflow' has no attribute 'GPUOptions'

If you want to use the tensorflow 1.x functions/methods, there is a compatibility module kept in tensorflow 2.x.

tf.compat.v1.GPUOptions(per_process_gpu_memory_fraction)

2.AttributeError: module 'tensorflow_core.keras.backend' has no attribute 'tensorflow_backend'

->tf.keras.backend 是2.0的函式

3. K.tensorflow_backend._get_available_gpus()

tf2.0使用tf.test.is_gpu_available()來確認機器是否在GPU模式下運行

arrow
arrow
    文章標籤
    Tensorflow 深度學習 Capsnet
    全站熱搜

    低階ㄇㄋ 發表在 痞客邦 留言(0) 人氣()