Comments (7)
Hello @osannolik, and thank you for the bug report.
This is an interesting insight. I was not expecting this to happen.
Here is how the bias is added. Indeed it seems like too much code for something so simple.
I also could optimize conv2D using gauss trick to do 3 convolutions instead of 4.
Due to the holidays, I won't sit with this right now. I might fix it in January, If you want, I invite you to also do a pull request if you need it ASAP.
from cvnn.
It would be nice to have it fixed as it is a pretty good optimization that would benefit more or less all users of ComplexConv2D. Not sure if I have the time to fix it myself in the near future unfortunately.
from cvnn.
Any updates on this? I recently started using ComplexConv2D and saw my training time slow down by a factor of 3~4.
I haven't tried enabling or disabling the bias specifically, but I can give that a try to see if that is the cause.
from cvnn.
Are you using batch norm? That is the main speed issue with my library.
from cvnn.
No, I'm not using any batch norm or layer norm at all!
from cvnn.
Unfortunately, I now work a full time engineer and no longer have time to keep developing/upgrading this library. I am sorry for those users but I don't think this feature is coming in the near future.
from cvnn.
I've been told that dividing by just the norm of the complex value would be good enough and it's quite fast to compute. I will leave it as an option in this issue.
from cvnn.
Related Issues (20)
- Model subclassing compatibility HOT 4
- load CVNN model with succes HOT 1
- Implement complex-valued constraint parameter HOT 7
- Terrible slow caused by ComplexBatchNormalization() HOT 4
- Custom Activation Functions with tensorflow 2.8.2 HOT 1
- Pytorch implementation HOT 3
- "WARNING:tensorflow: You are casting an input of type complex64 to an incompatible dtype float32. This will discard the imaginary part and may not be what you intended." HOT 5
- ModuleNotFoundError: No module named 'cvnn.montecarlo' HOT 1
- Unknown activation function 'cart_relu': Please ensure this object is passed to 'custom objects' argument HOT 5
- Cant find Complex Softmax which takes complex input and output complex output HOT 1
- Best Activation Function in Complex Domain HOT 1
- using this function layers.complex_input(shape=input_shape + (3,)) gives off dtype error HOT 2
- Problem with loading complex valued model HOT 2
- Equivalent Data PreProcessing for complex-valued input
- Data Parallel Distributed support HOT 4
- Best way to convert Real data into complex data type HOT 2
- Type type error for "ComplexInput" HOT 2
- Error while adding a layer HOT 2
- ValueError: Invalid dtype: complex64 with TF 2.16+ HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cvnn.