-
Notifications
You must be signed in to change notification settings - Fork 937
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
An operation has None
for gradient. Please make sure that all of your ops have a gradient defined (i.e. are differentiable). Common ops without gradient: K.argmax, K.round, K.eval.
#363
Comments
While training for single class, I am getting this error. Shape of the 'conv4_3_norm_mbox_conf' weights: kernel: (3, 3, 512, 8) Error log:ValueError Traceback (most recent call last) /media/antpc/main_drive/anaconda3/envs/mafat/lib/python3.6/site-packages/keras/legacy/interfaces.py in wrapper(*args, **kwargs) /media/antpc/main_drive/anaconda3/envs/mafat/lib/python3.6/site-packages/keras/engine/training.py in fit_generator(self, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch) /media/antpc/main_drive/anaconda3/envs/mafat/lib/python3.6/site-packages/keras/engine/training_generator.py in fit_generator(model, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch) /media/antpc/main_drive/anaconda3/envs/mafat/lib/python3.6/site-packages/keras/engine/training.py in _make_train_function(self) /media/antpc/main_drive/anaconda3/envs/mafat/lib/python3.6/site-packages/keras/legacy/interfaces.py in wrapper(*args, **kwargs) /media/antpc/main_drive/anaconda3/envs/mafat/lib/python3.6/site-packages/keras/optimizers.py in get_updates(self, loss, params) /media/antpc/main_drive/anaconda3/envs/mafat/lib/python3.6/site-packages/keras/optimizers.py in get_gradients(self, loss, params) ValueError: An operation has |
None
for gradient. Please make sure that all of your ops have a gradient defined (i.e. are differentiable). Common ops without gradient: K.argmax, K.round, K.eval.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
If you open a GitHub issue, here is the policy:
Your issue must be about one of the following:
You will only get help if you adhere to the following guidelines:
The text was updated successfully, but these errors were encountered: