Giter Site home page Giter Site logo

Comments (6)

lungd avatar lungd commented on May 19, 2024

Dense does support input arrays of arbitrary sizes by reshaping the input and the result (e.g. https://github.com/avik-pal/Lux.jl/blob/main/src/layers/basic.jl#L650)

julia> using Lux, Random

julia> d = Dense(1,2)
Dense(1 => 2)       # 4 parameters

julia> ps, st = Lux.setup(Random.default_rng(), d);

julia> x = randn(1,2,3,4,5);

julia> size(d(x, ps, st)[1])
(2, 2, 3, 4, 5)

from lux.jl.

jakubMitura14 avatar jakubMitura14 commented on May 19, 2024

Ok I was refering to this in documantation

Input

x must be a Matrix of size in_dims × B or a Vector of length in_dims

In http://lux.csail.mit.edu/dev/api/layers/

Thank You for fast response !!

from lux.jl.

avik-pal avatar avik-pal commented on May 19, 2024

Thanks for pointing it out. Fixed docs in #124.

from lux.jl.

jakubMitura14 avatar jakubMitura14 commented on May 19, 2024

Happy to help @avik-pal , generally with so huge speed of development like is present in this repository it is fully understendable !

just checking Lux.Conv has

Image data should be stored in WHCN order (width, height, channels, batch)

so it is truly conv2D only - hence no possibility of 3d convolutions at the moment ?

from lux.jl.

avik-pal avatar avik-pal commented on May 19, 2024

No, it works for 3d see the inputs section. It is mentioned as an example of data ordering.

from lux.jl.

jakubMitura14 avatar jakubMitura14 commented on May 19, 2024

ok, fantastic ! so in this case it can be written

(width, height, channels, batch) 
or (width, height,depth, channels, batch)

from lux.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.