forked from tinygrad/tinygrad
type annotation for layernorm (#6883)
This commit is contained in:
+1
-1
@@ -3042,7 +3042,7 @@ class Tensor:
|
||||
"""
|
||||
return functools.reduce(lambda x,f: f(x), ll, self)
|
||||
|
||||
def layernorm(self, axis=-1, eps:float=1e-5) -> Tensor:
|
||||
def layernorm(self, axis:Union[int,Tuple[int,...]]=-1, eps:float=1e-5) -> Tensor:
|
||||
"""
|
||||
Applies Layer Normalization over a mini-batch of inputs.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user