MCPcopy
hub / github.com/google-deepmind/gemma / _wrap_skip

Function _wrap_skip

gemma/gm/ckpts/_checkpoint.py:446–450  ·  view source on GitHub ↗

Wrap the params in a `Skip` object.

(tree)

Source from the content-addressed store, hash-verified

444
445
446def _wrap_skip(tree):
447 """Wrap the params in a `Skip` object."""
448 # Currently has no effect but when orbax will support partial restore,
449 # this will skip the restore of those params.
450 return jax.tree.map(_Skip, tree)
451
452
453def _unwrap_skip(tree):

Callers 1

make_tree_for_paramsMethod · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected