-
Notifications
You must be signed in to change notification settings - Fork 34
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
Implement complex-valued constraint parameter #28
Comments
Hello and thank you for your interest. |
Thank you for the response. I updated from v1.0.0 (via conda) to v1.2.14 (via pip). Like you said, the bias feature is now working properly. However, the kernel constraint still seems to have no effect. |
Yes sorry, I need to update conda's version. I will do so next week. Indeed, the |
I have been investigating about this. I could easily do:
This is a problem because it will prevent (I think) the idea of making a contraint on the phase or amplitude. Does this still work for you? If so, which feature do you think would be better suit for you? |
I think having two separate In my specific application, I just needed to set certain weights to 0. And I actually made some modifications that worked for me here: master...j-peetz:master But I only changed the ComplexDense class. And in general, it'd be nice to be able to specify separate real and imaginary constraints. Thank you so much for being responsive! Having complex NNs opens up a lot of possibilities, and this library is super helpful. |
Congrats! I did a pull request of your code.
|
Ok great! Thanks again. |
Hello @NEGU93, thank you for making this library! I'm attempting to use the arguments "use_bias" and "kernel_constraint" within "ComplexDense" as so:
self.d1 = complex_layers.ComplexDense(dim, use_bias=False, kernel_constraint=ConstantWeights())
However, these arguments seem to have no effect -- there are still biases, and the constraints on the weights are not enforced. That is, the layer performs identically to this:
self.d1 = complex_layers.ComplexDense(dim)
I tried the same arguments with tf.keras.layers.Dense and got the desired behaviors. Please let me know if I misunderstand how to use these. Thanks in advance!
Here's the relevant context, in case it helps:
The text was updated successfully, but these errors were encountered: