Giter Site home page Giter Site logo

Comments (7)

MikeInnes avatar MikeInnes commented on May 28, 2024 1

exp is actually written in pure Julia at this point, so we just compile that version for the GPU :)

from cuarrays.jl.

maleadt avatar maleadt commented on May 28, 2024

See the current limitations. You need to use CUDAnative.log (and alike for other intrinsics).

from cuarrays.jl.

MikeInnes avatar MikeInnes commented on May 28, 2024

The @fix macro is supposed to fix this up automatically, so I'll have to look into why that's not working.

from cuarrays.jl.

gustafsson avatar gustafsson commented on May 28, 2024

@maleadt If you don't mind me asking, how come it works for exp which is also an intrinsic?

I'm willing to help out if I can.

from cuarrays.jl.

MikeInnes avatar MikeInnes commented on May 28, 2024
julia> Flux.crossentropy(x,x)
ERROR: Broadcast output type Any is not concrete

This is the error I get on latest versions of things, which is a different issue – is that the same for you?

from cuarrays.jl.

gustafsson avatar gustafsson commented on May 28, 2024

Yes, I got the same error when I tried to use Flux.crossentropy. I then ran into this other error of when I was trying to dive down and create a minimal example.

from cuarrays.jl.

MikeInnes avatar MikeInnes commented on May 28, 2024

Ok, so the issue there is that there's a type instability somewhere the broadcast call. The way to investigate that is to poke through @code_typed for crossentropy (the problem might exist for normal arrays as well, but just show up as poor performance rather than an error).

from cuarrays.jl.

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.