Skip to content

zeros(*shape, *, optimizable=False, dtype=None) ΒΆ

Source code in funfact/lang/_special.py
def zeros(*shape, optimizable=False, dtype=None):
    return TsrEx(
        P.tensor(
            AbstractTensor(
                *flatten(shape), symbol=('0', None),
                initializer=ini.Zeros(dtype=dtype), optimizable=optimizable
            )
        )
    )
Back to top