It can be clearly said that GPU resources are insufficient. What’s more, when using jupyters provided by various platforms to use GPU, when opening multiple tap pages, because tensorflow takes up all the resources as much as possible, only the first one will start successfully without setting the resource usage in advance, and the rest will cause the above error
You can close all pages first, then restart, and configure as follows
# import tensorflow as tf
import os
os.environ['CUDA_VISIBLE_DEVICES']="0" # Specify which GPU to train
config=tf.compat.v1.ConfigProto()
# Set the maximum occupied GPU to no more than 80% of the video memory (optional)
config.gpu_options.per_process_gpu_memory_fraction=0.5
config.gpu_options.allow_growth = True # Set dynamic GPU memory allocation
sess=tf.compat.v1.Session(config=config)
Read More:
- [Solved] Tensorflow-gpu Error: self._traceback = tf_stack.extract_stack()
- MOTR compiling error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_R
- Qt error: no matching function for call to ‘MainWindow::connect(QAction*&, void (QAction::*)
- [Solved] QT Programme Error: error: no matching function for call to…
- Vue+TS main.ts error: unused expression, expected an assignment or function call
- [Solved] NPM install error: Maximum call stack size exceeded
- How to Fix msgsend() error: to many arguments to function call, expected 0, have2
- NPM installation error Maximum call stack size exceeded
- React Hook “useState“ is called in function “xxx“ which is neither a React function component or
- TensorFlow-gpu Error: failed call to cuInit: CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
- [Solved] Error: error C2601: ‘b‘ : local function definitions are illegal error C2063: ‘b‘ : not a function
- TensorFlow error: AttributeError: module ‘tensorflow_core._api.v2.train’ has no attribute ‘Optimizer‘
- [Solved] Tensorflow error or keras error and tf.keras error: oom video memory is insufficient
- Error using tensorflow GPU: could not create cudnn handle: cudnn_STATUS_NOT_INITIALIZED
- Tensorflow error: attributeerror: module ‘tensorflow_ API. V1. Train ‘has no attribute’ summarywriter ‘
- [Solved] Tensorflow-gpu 2.0.0 Run Error: ModuleNotFoundError: No module named ‘tensorflow_core.estimator‘
- [Solved] Tensorflow Error: Failed to load the native TensorFlow runtime.
- TypeError: db.collection is not a function
- [How to Fix] _this2.$xxxis not a function