question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

F ./tensorflow/core/util/cuda_launch_config.h:127] Check failed: work_element_count > 0 (0 vs. 0)

See original GitHub issue

my computer get two gpus,it’ s normal if i don’t add this code in the context. model = keras.utils.training_utils.multi_gpu_model(base_model, gpus=2) however, it will use only one to compute, i don’t understand what’s it means ‘work_element_count > 0’. is it that i have not cleared the cuda worker before ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:16

github_iconTop GitHub Comments

2reactions
ashwinijoshigithubcommented, Aug 31, 2018

@mahaishou This issue was resolved when I upgraded tensorflow-gpu version to 1.9.0.

1reaction
mahaishoucommented, Aug 31, 2018

@qiuyinglin control the number of one epoch input. I use keras to train model, just like this history = multi_model.fit(X_train, Y_train, batch_size=batch_size, epochs=1, validation_data = (X_test, Y_test)) X_train is my input data, so just control the length of X_train.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2 - Stack Overflow
Cuda Error Message : F ./tensorflow/core/util/cuda_launch_config.h:127] Check failed: work_element_count > 0 (0 vs. 0).
Read more >
Check failed error in Keras distributed ... - GitHub
Hello, in attempt to train simple keras model in distributed environment with TF 2.0 MultiWorkerMirroredStrategy I have encoutered an error ...
Read more >
logo - splunktool
f ./tensorflow/core/util/cuda_launch_config.h:127] check failed: work_element_count > 0 (0 vs. 0). Last Update : 2022-09-08 04:58 pm.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found