Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear internal behavior of the first layer in NOMAD model #54

Closed
vavrines opened this issue Dec 16, 2024 · 1 comment · Fixed by #55
Closed

Unclear internal behavior of the first layer in NOMAD model #54

vavrines opened this issue Dec 16, 2024 · 1 comment · Fixed by #55
Labels
bug Something isn't working

Comments

@vavrines
Copy link

Describe the bug 🐞

Unclear internal behavior of the first layer in NOMAD model.

Minimal Reproducible Example 👇

using Lux, NeuralOperators, Random

nomad = NOMAD(Chain(Dense(8 => 8, σ), Dense(8 => 7)),
    Chain(Dense(8 => 4, σ), Dense(4 => 1)))

rng = Random.default_rng()
ps, st = Lux.setup(rng, nomad)

u = rand(Float32, 8, 10)
y = rand(Float32, 1, 10)

v = nomad.model.layers[1](u, ps.layer_1, st.layer_1)[1]
@show size(v)

Error & Stacktrace ⚠️

size(v) = (15, 10)

Expected behavior

The shape of the output from the first layer is expected to be (7, 10) so that it can be concatenated to the subsequent layer.

Environment (please complete the following information):

  • Output of using Pkg; Pkg.status()
  [b2108857] Lux v1.4.1
  [ea5c82af] NeuralOperators v0.5.2
  • Output of versioninfo()
Julia Version 1.11.1
@vavrines vavrines added the bug Something isn't working label Dec 16, 2024
@avik-pal
Copy link
Member

cc @ayushinav

@ayushinav ayushinav mentioned this issue Dec 28, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants