Troubleshoot on Keras using GPU

2021-10-21

Keras "Failed to call ThenRnnForward with model config"

[link]

No!!!!

Just the GPU's RAM are all occupied by another process.

nvidia-smi to check.

Still the RAM are goes to one process.

Maybe there are already some GPU load balancer could help...eg multiple user use cases

Tensorflow "Could not load dynamic library libcudart.so.10.1"

https://www.cxyzjd.com/article/qq_19707521/107384416

  1. Step 1

[code]export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  1. Step 2

[code]cd /usr/local/cuda/lib64 sudo cp libcublas.so.10.0 libcublas.so.10 sudo cp libcufft.so.10.0 libcufft.so.10 sudo cp libcurand.so.10.0 libcurand.so.10 sudo cp libcusolver.so.10.0 libcusolver.so.10 sudo cp libcusparse.so.10.0 libcusparse.so.10

Keras "cannot import name 'get_config'"

Instead of

[code]import keras import keras.xxx

use

[code]import tensorflow.keras import tensorflow.keras.xxx