fix Initializer protocol

This commit is contained in:
Klaus Greff 2025-02-26 14:25:15 +01:00 committed by GitHub
parent 99a12ef9ea
commit 5acfc88a00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,8 +46,8 @@ RealNumeric = Any # Scalar jnp array or float
@export
@typing.runtime_checkable
class Initializer(Protocol):
@staticmethod
def __call__(key: Array,
def __call__(self,
key: Array,
shape: core.Shape,
dtype: DTypeLikeInexact = jnp.float_) -> Array:
raise NotImplementedError