-
Notifications
You must be signed in to change notification settings - Fork 76
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
Adding Objax2Tf converter #176
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposed some cosmetic changes.
Please take another look |
@david-berthelot please take another look |
|
||
module_vars = module.vars() | ||
|
||
def wrapped_op(tensor_list: List[JaxArray], kwargs, *args): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just putting a note here for us to think about (I'm going to merge regardless for now).
Say we do:
import objax
m = objax.nn.BatchNorm0D(3)
tfm = objax.util.Objax2Tf(m)
x = objax.random.uniform((10, 3))
# What do we expect with? E.g. should batch statistics be updated (running_mean, running_var)?
y = tfm(x, training=True)
Issue #109