Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 692a4054 authored by BIGAUD Nathan's avatar BIGAUD Nathan
Browse files

linting

parent eb441268
No related branches found
No related tags found
1 merge request!32Add support for Jax / Haiku
Pipeline #798589 waiting for manual action
......@@ -308,9 +308,10 @@ class HaikuModel(Model):
) -> None:
"""Sets the index of trainable weights.
The split can be done by providing a functions applying conditions on the named
weights, as haiku users are used to do, but can also accept an explicit dict
of names or even the index of the parameter leaves stored by our HaikuModel.
The split can be done by providing a functions applying conditions on
the named weights, as haiku users are used to do, but can also accept
an explicit dict of names or even the index of the parameter leaves
stored by our HaikuModel.
Example use :
>>> self.get_named_weights() = {'linear': {'w': None, 'b': None}}
......@@ -334,10 +335,10 @@ class HaikuModel(Model):
must be a function taking in the name of the module (e.g.
layer name), the element name (e.g. parameter name) and the
corresponding data and returning a boolean. See
[the haiku doc](https://dm-haiku.readthedocs.io/en/latest/api.html#haiku.data_structures.partition)
[the haiku doc](https://tinyurl.com/3v28upaz)
for details. If a list of integers, should represent the index of
trainable parameters in the parameter tree leaves. If a dict, should
be formatted as a pytree.
trainable parameters in the parameter tree leaves. If a dict,
should be formatted as a pytree.
"""
if not self._initialized:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment