# Need help in Tensorflow using

**URL:** <https://discuss.ai.google.dev/t/need-help-in-tensorflow-using/23413>\
**Category:** TensorFlow\
**Tags:** model\
**Created:** [March 7, 2024, 5:58am UTC](https://discuss.ai.google.dev/t/need-help-in-tensorflow-using/23413 "2024-03-07T05:58:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stella\_Fun](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/stella_fun/32/6987_2.png) [@Stella\_Fun](https://discuss.ai.google.dev/u/Stella_Fun)\
**Post date:** [March 7, 2024, 5:58am UTC](https://discuss.ai.google.dev/t/need-help-in-tensorflow-using/23413/1 "2024-03-07T05:58:29Z")

</div>

Hello, I tried too train my model using resnet\_50,and get the following warning:

/slurm/home/yrd/liaolab/nieshuyang/.local/lib/python3.9/site-packages/tensorflow/python/keras/engine/base\_layer\_v1.py:1694: UserWarning: `layer.apply` is deprecated and will be removed in a future version. Please use `layer. __call__ ` method instead.  
warnings.warn('`layer.apply` is deprecated and ’  
2024-03-07 10:39:30.701518: W tensorflow/stream\_executor/platform/default/dso\_loader.cc:64] Could not load dynamic library ‘libcudnn.so.8’; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory; LD\_LIBRARY\_PATH: /slurm/home/yrd/liaolab/nieshuyang/.local/lib/python3.9/site-packages/cv2/…/…/lib64:/slurm/soft/gcc/11.3.0/lib64:/slurm/soft/gcc/gmp/6.2.1/lib:/slurm/soft/gcc/mpc/1.2.1/lib:/slurm/soft/gcc/mpfr/4.1.0/lib:/slurm/soft/gcc/gsl/lib:/slurm/soft/gcc/zlib/1.2.9/lib:/usr/local/cuda/lib64:  
2024-03-07 10:39:30.701611: W tensorflow/core/common\_runtime/gpu/gpu\_device.cc:1934] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at [Install TensorFlow with pip](https://www.tensorflow.org/install/gpu) for how to download and setup the required libraries for your platform.  
Skipping registering GPU devices…  
2024-03-07 10:39:30.703683: I tensorflow/core/platform/cpu\_feature\_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA  
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.  
Loading ImageNet-pretrained resnet\_50  
2024-03-07 10:39:31.318140: W tensorflow/core/common\_runtime/gpu/gpu\_device.cc:1934] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at [Install TensorFlow with pip](https://www.tensorflow.org/install/gpu) for how to download and setup the required libraries for your platform.  
Skipping registering GPU devices…  
2024-03-07 10:39:32.478029: I tensorflow/compiler/mlir/mlir\_graph\_optimization\_pass.cc:354] MLIR V1 optimization pass is not enabled

---

<div class="post-metadata">

**Author:** ![Kiran\_Sai\_Ramineni](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/kiran_sai_ramineni/32/8859_2.png) [@Kiran\_Sai\_Ramineni](https://discuss.ai.google.dev/u/Kiran_Sai_Ramineni)\
**Post date:** [March 13, 2024, 9:22am UTC](https://discuss.ai.google.dev/t/need-help-in-tensorflow-using/23413/3 "2024-03-13T09:22:02Z")

</div>

> [@Stella\_Fun](#):
>
> /slurm/home/yrd/liaolab/nieshuyang/.local/lib/python3.9/site-packages/tensorflow/python/keras/engine/base\_layer\_v1.py:1694: UserWarning: `layer.apply` is deprecated and will be removed in a future version. Please use `layer. __call__ ` method instead.  
> warnings.warn('`layer.apply` is deprecated and ’

Hi @Stella_Fun, The warning says you are using deprecated methods in your code.

> [@Stella\_Fun](#):
>
> 2024-03-07 10:39:30.701518: W tensorflow/stream\_executor/platform/default/dso\_loader.cc:64] Could not load dynamic library ‘libcudnn.so.8’; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory; LD\_LIBRARY\_PATH: /slurm/home/yrd/liaolab/nieshuyang/.local/lib/python3.9/site-packages/cv2/…/…/lib64:/slurm/soft/gcc/11.3.0/lib64:/slurm/soft/gcc/gmp/6.2.1/lib:/slurm/soft/gcc/mpc/1.2.1/lib:/slurm/soft/gcc/mpfr/4.1.0/lib:/slurm/soft/gcc/gsl/lib:/slurm/soft/gcc/zlib/1.2.9/lib:/usr/local/cuda/lib64:  
> 2024-03-07 10:39:30.701611: W tensorflow/core/common\_runtime/gpu/gpu\_device.cc:1934] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at [Compatibilité avec les GPU | TensorFlow](https://www.tensorflow.org/install/gpu) for how to download and setup the required libraries for your platform.  
> Skipping registering GPU devices…

with the warning I suspect there are no CUDA libraries installed in the environment so the program was unable to use the GPU. Thank You.
