1. Error reporting: (from Python deep learning p178-179)
When vscode runs the following code in Jupiter notebook, an error is reported: internalerror: GPU sync failed
from tensorflow.keras.models import Sequential
from tensorflow.keras import layers
from tensorflow.keras.optimizers import RMSprop
model = Sequential()
model.add(layers.Flatten(input_shape=(lookback // step, float_data.shape[-1])))
model.add(layers.Dense(32, activation='relu'))
model.add(layers.Dense(1))
model.compile(optimizer=RMSprop(), loss='mae')
history = model.fit_generator(train_gen,
steps_per_epoch=500,
epochs=20,
validation_data=val_gen,
validation_steps=val_steps)
2. Solution:
(1) Don’t open too many ipynb file windows. There is only one running window left. Restart and there should be no problem.
(2) Some friends said that they might have something to do with the wallpaper engine. Just turn it off. I haven’t verified this yet.
However, I found that when the wallpaper engine dynamic desktop is displayed, the GPU utilization will increase sharply:
Read More:
- How to Solve error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe‘ failed
- Pytorch failed to specify GPU resolution
- [Solved] Pytorch loading model specified GPU card number error or failed to specify
- Opencv Can not Find opencv2/gpu/gpu.hpp [How to Solve]
- How to Solve Keras calls plot_model error
- Android Studio: Gradle project sync failed [How to Solve]
- How to Solve Error: Failed to load ApplicationContext
- How to Solve Import antd Error: Module build failed
- How to Solve Docker failed to initialize Error
- How to Solve NPM update check failed Error
- How to Solve Hyperf Failed to Start Error After Aliyun ACM Installed
- How to Solve Error: failed to load response
- How to Solve Error: Heartbeating to master:7182 failed.
- How to Solve MVC Error: Build failed.
- How to Solve Chrome Error: net::ERR_FAILED
- How to Solve Logstash error: failed to execute action
- [Solved] docker failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition
- How to Solve Application failed to start error
- How to Solve Loadrunner Error: Failed to find .cfg file
- How to Solve Springboot Error: Failed to convert value of type