Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/penzai
/ functions
Functions
1,092 in github.com/google-deepmind/penzai
⨍
Functions
1,092
◇
Types & classes
360
↳
Endpoints
3
Method
test_variable_jit
(self, jit, donate_vars, donate_other)
tests/core/variables_test.py:278
Method
test_variable_jit_disallows_returning_vars
(self)
tests/core/variables_test.py:312
Method
test_variable_protocol_methods
(self)
tests/core/variables_test.py:322
Method
test_variable_unbind_conflict
(self)
tests/core/variables_test.py:136
Method
test_variable_under_transform
(self)
tests/core/variables_test.py:62
Method
test_vars_for_axes
(self)
tests/core/shapecheck_test.py:502
Method
test_wrap
(self)
tests/core/named_axes_test.py:32
Method
test_wrapped_instance_methods
(self)
tests/core/named_axes_test.py:489
Method
tree_flatten_with_keys
Flattens this tree node with keys. See `jax.tree_util.register_pytree_with_keys_class`. This method should not be overridden by subclasses,
penzai/core/struct.py:584
Method
tree_flatten_with_keys
(self)
tests/core/struct_pytree_dataclass_test.py:38
Method
tree_unflatten
Unflattens this tree node.
tests/core/struct_pytree_dataclass_test.py:44
Method
treescope_color
(self)
penzai/core/partitioning.py:55
Method
treescope_color
(self)
penzai/core/variables.py:606
Method
treescope_color
(self)
penzai/core/variables.py:627
Method
treescope_color
(self)
penzai/core/variables.py:651
Method
treescope_color
(self)
penzai/core/variables.py:758
Method
treescope_color
(self)
penzai/core/variables.py:781
Method
treescope_color
(self)
penzai/core/variables.py:805
Method
treescope_color
(self)
penzai/toolshed/unflaxify.py:230
Method
treescope_color
(self)
penzai/nn/grouping.py:80
Method
treescope_color
(self)
penzai/nn/grouping.py:148
Method
treescope_color
(self)
penzai/nn/grouping.py:211
Method
treescope_color
(self)
penzai/nn/grouping.py:253
Method
treescope_color
(self)
penzai/nn/basic_ops.py:53
Method
treescope_color
(self)
penzai/nn/attention.py:249
Method
treescope_color
(self)
penzai/nn/linear_and_affine.py:246
Method
treescope_color
(self)
penzai/nn/linear_and_affine.py:603
Method
treescope_color
(self)
penzai/nn/linear_and_affine.py:700
Method
treescope_color
(self)
penzai/nn/linear_and_affine.py:757
Method
treescope_color
(self)
penzai/models/transformer/model_parts.py:104
Method
treescope_color
(self)
penzai/deprecated/v1/data_effects/effect_base.py:389
Method
treescope_color
(self)
penzai/deprecated/v1/data_effects/effect_base.py:443
Method
treescope_color
(self)
penzai/deprecated/v1/data_effects/effect_base.py:511
Method
treescope_color
(self)
penzai/deprecated/v1/toolshed/unflaxify.py:197
Method
treescope_color
(self)
penzai/deprecated/v1/nn/parameters.py:182
Method
treescope_color
(self)
penzai/deprecated/v1/nn/parameters.py:210
Method
treescope_color
(self)
penzai/deprecated/v1/nn/parameters.py:376
Method
treescope_color
(self)
penzai/deprecated/v1/nn/parameters.py:457
Method
treescope_color
(self)
penzai/deprecated/v1/nn/grouping.py:82
Method
treescope_color
(self)
penzai/deprecated/v1/nn/grouping.py:148
Method
treescope_color
(self)
penzai/deprecated/v1/nn/grouping.py:199
Method
treescope_color
(self)
penzai/deprecated/v1/nn/grouping.py:249
Method
treescope_color
(self)
penzai/deprecated/v1/nn/basic_ops.py:61
Method
treescope_color
(self)
penzai/deprecated/v1/nn/linear_and_affine.py:276
Method
treescope_color
(self)
penzai/deprecated/v1/nn/linear_and_affine.py:601
Method
treescope_color
(self)
penzai/deprecated/v1/nn/linear_and_affine.py:724
Method
treescope_color
(self)
penzai/deprecated/v1/nn/linear_and_affine.py:781
Function
unbind_params
( tree: Any, predicate: Callable[[Parameter], bool] | None = None, freeze: Literal[False] = False,
penzai/core/variables.py:823
Function
unbind_state_vars
( tree: Any, predicate: Callable[[StateVariable], bool] | None = None, freeze: Literal[False] = Fa
penzai/core/variables.py:865
Function
unchecked_layer_call
Shape-checking opt-out decorator for ``Layer.__call__``.
penzai/deprecated/v1/core/layer.py:98
Function
unflaxify_apply
Creates an `InterceptedFlaxModuleMethod` from applying a Flax module. Note that this function is intended for interactive exploration and to help
penzai/toolshed/unflaxify.py:253
Function
unflaxify_apply
Creates an `InterceptedFlaxModuleMethod` from applying a Flax module. Note that this function is intended for interactive exploration and to help
penzai/deprecated/v1/toolshed/unflaxify.py:220
Method
unfreeze_as_copy
(self)
penzai/core/variables.py:773
Method
unhandled_effect_stub
(*args, **kwargs)
penzai/deprecated/v1/data_effects/effect_base.py:165
Method
unhandled_effect_stub
(*args, **kwargs)
penzai/deprecated/v1/data_effects/effect_base.py:370
Function
unpatch_ipdb
Unpatches the IPython debugger so that it uses its original displayhook.
penzai/toolshed/patch_ipdb.py:58
Function
unstack
Splits a named array across a given named axis. Args: array: The array to split. axis_name: Name of the axis along which to unstack. Ret
penzai/core/named_axes.py:1984
Method
untag
Produces a positional view of the requested axis names. `untag` can only be called on a `NamedArray` or `NamedArrayView` that does not have a
penzai/core/named_axes.py:763
Method
unwrap
(self)
penzai/core/named_axes.py:396
Method
unwrap
(self)
penzai/core/named_axes.py:404
Method
unwrap
(self)
penzai/core/named_axes.py:414
Method
unwrap
Unwraps this array, possibly mapping axis names to positional axes. Unwrap can be called either on arrays with no named axes, or arrays with
penzai/core/named_axes.py:711
Method
unwrap
(self, *names)
penzai/core/named_axes.py:1638
Method
value
(self)
penzai/core/variables.py:513
Method
value
Raises an error when accessed.
penzai/core/variables.py:645
Method
value
Raises an error when accessed.
penzai/core/variables.py:799
Method
value
The value of the parameter. May raise an error for some instances.
penzai/nn/parameters.py:60
Method
value
The value of the parameter. May raise an error for some instances.
penzai/deprecated/v1/nn/parameters.py:111
Method
value
r"""Value accessor for compatibility with `ParameterLike`. Raises: UninitializedParameterError: Since ``UninitializedParameter``\ s are not
penzai/deprecated/v1/nn/parameters.py:359
Method
value
Value accessor for compatibility with `ParameterLike`. Raises: MissingSharedParameterError: Since ``SharedParameterLookup`` does not have
penzai/deprecated/v1/nn/parameters.py:447
Method
value_structure
The structure of the parameter.
penzai/deprecated/v1/nn/parameters.py:117
Method
value_structure
(self)
penzai/deprecated/v1/nn/parameters.py:174
Method
value_structure
(self)
penzai/deprecated/v1/nn/parameters.py:202
Function
var
Creates a variable for an axis shape. The resulting variable can be used in place of a single array dimension. It can also be unpacked with ``*va
penzai/core/shapecheck.py:156
Function
variable_jit
Variable-aware version of `jax.jit`. This function is like `jax.jit`, but adds support for Variables as leaves of the input pytree(s). Limitat
penzai/core/variables.py:374
Function
variance_scaling_initializer
Generic variance scaling initializer.
penzai/nn/linear_and_affine.py:104
Function
variance_scaling_initializer
Generic variance scaling initializer.
penzai/deprecated/v1/nn/linear_and_affine.py:109
Function
vars_for_axes
Creates variables for a known collection of named axes. Args: var_name: A name for the variable that will store the concrete sizes for all
penzai/core/shapecheck.py:178
Method
with_local_var
(x)
tests/core/variables_test.py:63
Method
with_positional_prefix
Ensures a view is a `NamedArray` by moving positional axes. The resulting `NamedArray` has the same named and positional shapes as this objec
penzai/core/named_axes.py:731
Method
with_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/data_effects/local_state.py:120
Method
with_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/data_effects/local_state.py:167
Method
with_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/data_effects/local_state.py:200
Method
with_renamed_parameters
Returns a copy of this node with parameterss renamed. If implemented on a parameter, this should make a copy of the parameter with a new name
penzai/deprecated/v1/nn/parameters.py:136
Method
with_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/nn/parameters.py:205
Method
with_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/nn/parameters.py:371
Function
wrap_module
Wraps a module to automatically apply `named_axes.nmap` to callables. The returned object will have similar attributes to `module`, including all
penzai/toolshed/auto_nmap.py:93
Function
wrapped_f
(carry, x)
penzai/core/named_axes.py:2091
Function
wrapped_fun
(*args, **kwargs)
penzai/core/named_axes.py:178
Function
wrapped_scalar_conversion
(self: NamedArrayBase)
penzai/core/named_axes.py:357
Function
wrapper
(self, argument: Any, /)
penzai/deprecated/v1/core/layer.py:71
Function
zeros
Constructs a named array of zeros with a given shape. Args: named_shape: Named shape for the result. dtype: Optional dtype for the result.
penzai/core/named_axes.py:1817
← previous
1,001–1,092 of 1,092, ranked by callers