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

nnx.Swish, jax.swish,... change the input shape #4214

Open
leson207 opened this issue Sep 21, 2024 · 2 comments
Open

nnx.Swish, jax.swish,... change the input shape #4214

leson207 opened this issue Sep 21, 2024 · 2 comments

Comments

@leson207
Copy link

leson207 commented Sep 21, 2024

System information

Problem you have encountered:

print(xBC.shape)
xBC = jax.nn.swish(x) or xBC = nnx.swish(x)
print(xBC.shape)

output shape is not the same as expected

What you expected to happen:

Output:
(1, 128, 288)
(1, 128, 128)
Expect:
(1, 128, 288)
(1, 128, 288)

@leson207 leson207 reopened this Sep 21, 2024
@leson207 leson207 changed the title nnx.Conv does not work as expected nnx.Swish, jax.swish,... change the input shape Sep 21, 2024
@cgarciae
Copy link
Collaborator

Hey, currently

assert jax.nn.swish is nnx.swish

so I'm not sure what the issue could be here.

@leson207
Copy link
Author

Hey, currently

assert jax.nn.swish is nnx.swish

so I'm not sure what the issue could be here.

I know that them the same, i mean when i use these functions, which build on each other or just other name(silu,swish), it change my input shape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants