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

Gradient registration #9

Open
pilipovicr opened this issue Jul 2, 2020 · 0 comments
Open

Gradient registration #9

pilipovicr opened this issue Jul 2, 2020 · 0 comments

Comments

@pilipovicr
Copy link

pilipovicr commented Jul 2, 2020

In file python/keras/layers/fake_approx_convolutional.py:

When registering gradient for approximate convolution layer you should replace:

@ops.RegisterGradient("FakeApproxConv2D")

with

@tf.RegisterGradient("ApproxConv2DWithMinMaxVars")

RegisterGradient function takes name of the TF operator not the layer.

Greetings
Ratko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant