Composable modules
#26424
Replies: 1 comment 2 replies
-
This might be a flax-specific question. If so, can you ask on the flax repo? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to create a composable module so that users of my library can do ergonomic operations like
bias = DistanceBias(channel=0) + DistanceBias(channel=1)
which will create a composite distance bias module. However, I can't seem to get parent / scoping sorted out and I always get a naming conflict. Here is an mvp of the code:When I run,
DistanceBias(channel=0) + DistanceBias(channel=1)
, I get the following error:Is there any reasonable way to do this in JAX?
Beta Was this translation helpful? Give feedback.
All reactions