MCPcopy Create free account
hub / github.com/AI-Hypercomputer/maxtext / initialize

Method initialize

src/MaxText/maxengine.py:1603–1604  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1601
1602 @functools.partial(jax.jit, out_shardings=shardings)
1603 def initialize():
1604 return jax.tree_util.tree_map(lambda x: jnp.zeros(x.shape, x.dtype), abstract_outputs)
1605
1606 init_state = initialize()
1607 cache = init_state["cache"]

Callers 15

mainFunction · 0.45
prepare_settingFunction · 0.45
initializeFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
get_model_mdnFunction · 0.45
mainFunction · 0.45
is_oomFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected