MCPcopy Create free account

hub / github.com/google-deepmind/penzai / functions

Functions1,092 in github.com/google-deepmind/penzai

Methodtest_variable_jit
(self, jit, donate_vars, donate_other)
tests/core/variables_test.py:278
Methodtest_variable_jit_disallows_returning_vars
(self)
tests/core/variables_test.py:312
Methodtest_variable_protocol_methods
(self)
tests/core/variables_test.py:322
Methodtest_variable_unbind_conflict
(self)
tests/core/variables_test.py:136
Methodtest_variable_under_transform
(self)
tests/core/variables_test.py:62
Methodtest_vars_for_axes
(self)
tests/core/shapecheck_test.py:502
Methodtest_wrap
(self)
tests/core/named_axes_test.py:32
Methodtest_wrapped_instance_methods
(self)
tests/core/named_axes_test.py:489
Methodtree_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
Methodtree_flatten_with_keys
(self)
tests/core/struct_pytree_dataclass_test.py:38
Methodtree_unflatten
Unflattens this tree node.
tests/core/struct_pytree_dataclass_test.py:44
Methodtreescope_color
(self)
penzai/core/partitioning.py:55
Methodtreescope_color
(self)
penzai/core/variables.py:606
Methodtreescope_color
(self)
penzai/core/variables.py:627
Methodtreescope_color
(self)
penzai/core/variables.py:651
Methodtreescope_color
(self)
penzai/core/variables.py:758
Methodtreescope_color
(self)
penzai/core/variables.py:781
Methodtreescope_color
(self)
penzai/core/variables.py:805
Methodtreescope_color
(self)
penzai/toolshed/unflaxify.py:230
Methodtreescope_color
(self)
penzai/nn/grouping.py:80
Methodtreescope_color
(self)
penzai/nn/grouping.py:148
Methodtreescope_color
(self)
penzai/nn/grouping.py:211
Methodtreescope_color
(self)
penzai/nn/grouping.py:253
Methodtreescope_color
(self)
penzai/nn/basic_ops.py:53
Methodtreescope_color
(self)
penzai/nn/attention.py:249
Methodtreescope_color
(self)
penzai/nn/linear_and_affine.py:246
Methodtreescope_color
(self)
penzai/nn/linear_and_affine.py:603
Methodtreescope_color
(self)
penzai/nn/linear_and_affine.py:700
Methodtreescope_color
(self)
penzai/nn/linear_and_affine.py:757
Methodtreescope_color
(self)
penzai/models/transformer/model_parts.py:104
Methodtreescope_color
(self)
penzai/deprecated/v1/data_effects/effect_base.py:389
Methodtreescope_color
(self)
penzai/deprecated/v1/data_effects/effect_base.py:443
Methodtreescope_color
(self)
penzai/deprecated/v1/data_effects/effect_base.py:511
Methodtreescope_color
(self)
penzai/deprecated/v1/toolshed/unflaxify.py:197
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/parameters.py:182
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/parameters.py:210
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/parameters.py:376
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/parameters.py:457
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/grouping.py:82
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/grouping.py:148
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/grouping.py:199
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/grouping.py:249
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/basic_ops.py:61
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/linear_and_affine.py:276
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/linear_and_affine.py:601
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/linear_and_affine.py:724
Methodtreescope_color
(self)
penzai/deprecated/v1/nn/linear_and_affine.py:781
Functionunbind_params
( tree: Any, predicate: Callable[[Parameter], bool] | None = None, freeze: Literal[False] = False,
penzai/core/variables.py:823
Functionunbind_state_vars
( tree: Any, predicate: Callable[[StateVariable], bool] | None = None, freeze: Literal[False] = Fa
penzai/core/variables.py:865
Functionunchecked_layer_call
Shape-checking opt-out decorator for ``Layer.__call__``.
penzai/deprecated/v1/core/layer.py:98
Functionunflaxify_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
Functionunflaxify_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
Methodunfreeze_as_copy
(self)
penzai/core/variables.py:773
Methodunhandled_effect_stub
(*args, **kwargs)
penzai/deprecated/v1/data_effects/effect_base.py:165
Methodunhandled_effect_stub
(*args, **kwargs)
penzai/deprecated/v1/data_effects/effect_base.py:370
Functionunpatch_ipdb
Unpatches the IPython debugger so that it uses its original displayhook.
penzai/toolshed/patch_ipdb.py:58
Functionunstack
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
Methoduntag
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
Methodunwrap
(self)
penzai/core/named_axes.py:396
Methodunwrap
(self)
penzai/core/named_axes.py:404
Methodunwrap
(self)
penzai/core/named_axes.py:414
Methodunwrap
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
Methodunwrap
(self, *names)
penzai/core/named_axes.py:1638
Methodvalue
(self)
penzai/core/variables.py:513
Methodvalue
Raises an error when accessed.
penzai/core/variables.py:645
Methodvalue
Raises an error when accessed.
penzai/core/variables.py:799
Methodvalue
The value of the parameter. May raise an error for some instances.
penzai/nn/parameters.py:60
Methodvalue
The value of the parameter. May raise an error for some instances.
penzai/deprecated/v1/nn/parameters.py:111
Methodvalue
r"""Value accessor for compatibility with `ParameterLike`. Raises: UninitializedParameterError: Since ``UninitializedParameter``\ s are not
penzai/deprecated/v1/nn/parameters.py:359
Methodvalue
Value accessor for compatibility with `ParameterLike`. Raises: MissingSharedParameterError: Since ``SharedParameterLookup`` does not have
penzai/deprecated/v1/nn/parameters.py:447
Methodvalue_structure
The structure of the parameter.
penzai/deprecated/v1/nn/parameters.py:117
Methodvalue_structure
(self)
penzai/deprecated/v1/nn/parameters.py:174
Methodvalue_structure
(self)
penzai/deprecated/v1/nn/parameters.py:202
Functionvar
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
Functionvariable_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
Functionvariance_scaling_initializer
Generic variance scaling initializer.
penzai/nn/linear_and_affine.py:104
Functionvariance_scaling_initializer
Generic variance scaling initializer.
penzai/deprecated/v1/nn/linear_and_affine.py:109
Functionvars_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
Methodwith_local_var
(x)
tests/core/variables_test.py:63
Methodwith_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
Methodwith_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/data_effects/local_state.py:120
Methodwith_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/data_effects/local_state.py:167
Methodwith_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/data_effects/local_state.py:200
Methodwith_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
Methodwith_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/nn/parameters.py:205
Methodwith_renamed_parameters
( self, rename_fn: Callable[[str], str] )
penzai/deprecated/v1/nn/parameters.py:371
Functionwrap_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
Functionwrapped_f
(carry, x)
penzai/core/named_axes.py:2091
Functionwrapped_fun
(*args, **kwargs)
penzai/core/named_axes.py:178
Functionwrapped_scalar_conversion
(self: NamedArrayBase)
penzai/core/named_axes.py:357
Functionwrapper
(self, argument: Any, /)
penzai/deprecated/v1/core/layer.py:71
Functionzeros
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
← previous1,001–1,092 of 1,092, ranked by callers