Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when training DIVE on CPU #219

Open
RukuangHuang opened this issue Jan 26, 2024 · 1 comment
Open

Bug when training DIVE on CPU #219

RukuangHuang opened this issue Jan 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@RukuangHuang
Copy link
Collaborator

When GPU is not available, training DIVE (or possibly other models with more than one KL term), the ALREADY_EXISTS error will be raised after the first epoch.

Epoch 1/2
189/189 [==============================] - 1141s 6s/step - loss: 22154.2715 - group_covs_kernel: 0.1143 - covs_dev_decoder: 0.0030 - ll_loss: 22154.1484 - kl_loss: 0.0000e+00 - lr: 0.0050
Epoch 2/2
2024-01-26 12:04:48.265028: W tensorflow/core/framework/op_kernel.cc:1745] OP_REQUIRES failed at variable_ops.cc:118 : ALREADY_EXISTS: Resource __per_step_0/DIVE/kl_loss/AddN/tmp_var/frame:0/iter:0/N10tensorflow19TemporaryVariableOp6TmpVarE
2024-01-26 12:04:48 ERROR osl-dynamics [pipeline.py:131:run_pipeline]: Graph execution error:

Resource __per_step_0/DIVE/kl_loss/AddN/tmp_var/frame:0/iter:0/N10tensorflow19TemporaryVariableOp6TmpVarE
         [[{{node DIVE/kl_loss/AddN/tmp_var}}]] [Op:__inference_train_function_113708]
@RukuangHuang RukuangHuang added the bug Something isn't working label Jan 26, 2024
@RukuangHuang
Copy link
Collaborator Author

Update: This only happens when use_tfrecord = True. So the temporary solution is to avoid using TFRecords when GPU is not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant