Giter Club home page Giter Club logo

Comments (2)

dineshadepu avatar dineshadepu commented on May 25, 2024

Traceback is

     Running target/debug/deps/activation-6bd646e3fe82af6e

running 4 tests
test tests::test_relu ... ok
test tests::test_logistic ... FAILED
test tests::test_softmax ... FAILED
test tests::test_tan_h ... ok

failures:

---- tests::test_logistic stdout ----
thread 'tests::test_logistic' panicked at 'assertion failed: `(left == right)`
  left: `[0.7109495, 0.99260855, 0.99183744, 0.98015976, 0.785835]`,
 right: `[0.7109495, 0.9926085, 0.99183744, 0.98015976, 0.785835]`', src/main.rs:48:3
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

---- tests::test_softmax stdout ----
thread 'tests::test_softmax' panicked at 'assertion failed: `(left == right)`
  left: `[0.26894143, 0.73105854, 1.9872231]`,
 right: `[0.09003057, 0.24472846, 0.66524094]`', src/main.rs:67:9


failures:
    tests::test_logistic
    tests::test_softmax

from emu.

calebwin avatar calebwin commented on May 25, 2024

test_logistic is failing because of some sort of floating point/rounding error. For test_softmax it seems like the expected is 1/3 the actual.

However, all tests work for me on my computer (Ubuntu Intel i7 Windows 10). Maybe this is a problem with the version of OpenCL you have or the hardware you are running on? does the version you use support the pow() function?

from emu.

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.