constant_init#

hypercoil.init.base.constant_init(*, shape: Tuple[int], value: float = 0, key: PRNGKey | None = None) Tensor[source]#

Initialise a tensor to a constant value throughout. (The specified value doesn’t actually have to be scalar as long as it is broadcastable to the tensor being initialised.)