Giter VIP home page Giter VIP logo

Comments (7)

dcslin avatar dcslin commented on July 23, 2024

Hi, as pointed out by @chrishkchris , the convention is to use RELU as stateless layer.
usage:
https://github.com/apache/singa/blob/master/examples/cnn/model/cnn.py#L40

For shape mismatch, you might need to check the shape of layers again. Let me know if further info is required.

from singa.

Belegkarnil avatar Belegkarnil commented on July 23, 2024

Ok, I'll try but why to provide a statefull ReLU Layer? Is it for a specific purpose?

from singa.

Belegkarnil avatar Belegkarnil commented on July 23, 2024

I compared my implementation to other frameworks and it is the same shapes.
Moreover the forward pass does not cause any issue, it is the backward pass.
This is why I suspect a bug. Is it possible?

from singa.

nudles avatar nudles commented on July 23, 2024

Hi, as pointed out by @chrishkchris , the convention is to use RELU as stateless layer.
usage:
https://github.com/apache/singa/blob/master/examples/cnn/model/cnn.py#L40

For shape mismatch, you might need to check the shape of layers again. Let me know if further info is required.

@dcslin Did you try to run the code pasted by @Belegkarnil ?
Can you reproduce the error?

from singa.

dcslin avatar dcslin commented on July 23, 2024

Hi, as pointed out by @chrishkchris , the convention is to use RELU as stateless layer.
usage:
https://github.com/apache/singa/blob/master/examples/cnn/model/cnn.py#L40
For shape mismatch, you might need to check the shape of layers again. Let me know if further info is required.

@dcslin Did you try to run the code pasted by @Belegkarnil ?
Can you reproduce the error?

I am still checking the code

from singa.

dcslin avatar dcslin commented on July 23, 2024

Hi @Belegkarnil, you might need to change 256 * 6 * 6, 4096 to 256, 4096 to make it works.

Also you are recommended to use relu/dropout/flatten like this https://github.com/apache/singa/blob/master/examples/cnn/model/cnn.py#L40

from singa.

Belegkarnil avatar Belegkarnil commented on July 23, 2024

Ok thanks a lot ! I assumed that it works like other frameworks but that the result of AvgPool has a different shape.

from singa.

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.