MCPcopy Create free account
hub / github.com/apple/axlearn / initialize

Method initialize

axlearn/common/param_init.py:158–167  ·  view source on GitHub ↗
(
        self,
        name: str,
        *,
        prng_key: Tensor,
        shape: Shape,
        dtype: jnp.dtype,
        axes: Optional[FanAxes] = None,
    )

Source from the content-addressed store, hash-verified

156 """Base class for initializers."""
157
158 def initialize(
159 self,
160 name: str,
161 *,
162 prng_key: Tensor,
163 shape: Shape,
164 dtype: jnp.dtype,
165 axes: Optional[FanAxes] = None,
166 ) -> jnp.ndarray:
167 raise NotImplementedError(type(self))
168
169 def debug_string(
170 self,

Callers 15

mainFunction · 0.45
mainFunction · 0.45
initializeMethod · 0.45
initMethod · 0.45
setupFunction · 0.45
test_biasMethod · 0.45
test_scaleMethod · 0.45
test_none_fanMethod · 0.45
test_single_groupMethod · 0.45

Calls

no outgoing calls

Tested by 10

test_biasMethod · 0.36
test_scaleMethod · 0.36
test_none_fanMethod · 0.36
test_single_groupMethod · 0.36
test_constant_initMethod · 0.36
test_initializeMethod · 0.36