traverse_nn¶
Traverser utilities for neural networks.
Submodules¶
Traversal implementation for flax modules. |
|
A wrapper around flextype.flexdispatch to create an extensible traverser with lazy type matching. |
|
Traversal implementation for PyTorch modules. |
|
PyTorch-specific utils for traverse_nn. |
|
Generic utils for traverse_nn. |
Functions¶
Return the first layer of the given type(s) contained in a model. |
|
Return all layers of the given type(s) contained in a model. |
|
A variable whose value is computed dynamically from the current state. |
|
A variable that maintains global state across all traversal states. |
|
A wrapper around functools.singledispatch to create an extensible traverser. |
|
Compose a custom traverser with neural network traversal functionality. |
|
A wrapper around flextype.flexdispatch to create an extensible traverser with lazy type matching. |
|
A wrapper around flextype.flexdispatch to create an extensible traverser with lazy type matching. |