What is the Flax equivalent of Tensorflow functions? #916
Answered
by
marcvanzee
marcvanzee
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
marcvanzee
Jan 21, 2021
Replies: 1 comment 1 reply
-
I'm listing some Tensorflow functions below for which users asked what the equivalent is in Flax.
[1] Putting anything inside a new Module would have that effect. You can also always give submodules a name explicitly with the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
marcvanzee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm listing some Tensorflow functions below for which users asked what the equivalent is in Flax.
tf.identity
lambda x: x
tf.name_scope()
tf.print
host_callback.id_print
tf.keras.initializers.Constant
lambda rng: 1.0
[1] Putting anything inside a new Module would have that effect. You can also always give submodules a name explicitly with the
name=... kwarg
to the submodule constuctor.