Code Monkey home page Code Monkey logo

Comments (5)

NEGU93 avatar NEGU93 commented on May 27, 2024

Could you please provide a Minimum Working Example (MWE) to reproduce the error? A plus would be the working scenario.

Thank you

from cvnn.

Priyanshu-bee avatar Priyanshu-bee commented on May 27, 2024

from tensorflow.keras import datasets, models
import cvnn.layers as complex_layers

model = models.Sequential()
model.add(complex_layers.ComplexConv2D(32, (3, 3), activation='cart_relu', input_shape=(32, 32, 3), dtype=np.float32))

running the above is causing the given error, it is working when replacing activation with just 'relu'. As far as I could understand while defining Complex conv layers you have imported activations from tensorflow.keras and then used activations.get(activation) which might be raising an issue as these activations are defined and created by you and importing t_activations might enable us to use these complex activations.

from cvnn.

NEGU93 avatar NEGU93 commented on May 27, 2024

For me it's working. See it here.

from cvnn.

NEGU93 avatar NEGU93 commented on May 27, 2024

Try updating cvnn version to the latest.

Also, beware that the example cast to np.float32 and not complex.

from cvnn.

Priyanshu-bee avatar Priyanshu-bee commented on May 27, 2024

I used conda to install cvnn, that was giving the error. After doing pip install it works, thanks!!!

from cvnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.