mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
type annotation for layernorm (#6883)
This commit is contained in:
parent
8ca506ee37
commit
4c3895744e
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue