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

Method dtype

axlearn/common/base_layer.py:599–604  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

597
598 @nowrap
599 def dtype(self):
600 if self.config.dtype is not None:
601 return self.config.dtype
602 if self.parent is not None:
603 return self.parent.dtype()
604 return jnp.float32
605
606 def param_init(self) -> param_init.Initializer:
607 init = getattr(self, "_param_init", None)

Callers 15

init_statesMethod · 0.45
prefill_statesMethod · 0.45
infer_fwd_dtypeMethod · 0.45
init_forward_stateMethod · 0.45
_async_serializeFunction · 0.45
test_all_maskMethod · 0.45
__init__Method · 0.45
init_forward_stateMethod · 0.45
init_forward_stateMethod · 0.45

Calls

no outgoing calls

Tested by 6

init_forward_stateMethod · 0.36
test_all_maskMethod · 0.36
__init__Method · 0.36
init_forward_stateMethod · 0.36
init_forward_stateMethod · 0.36