Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dbf6c2

Browse files
author
ngimel
authored
use ctx.eps instead of eps
1 parent d1626cc commit 0dbf6c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apex/normalization/fused_layer_norm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def forward(ctx, input, weight, bias, normalized_shape, eps):
2222
weight_ = weight.contiguous()
2323
bias_ = bias.contiguous()
2424
output, mean, invvar = fused_layer_norm_cuda.forward_affine(
25-
input_, ctx.normalized_shape, weight_, bias_, eps)
25+
input_, ctx.normalized_shape, weight_, bias_, ctx.eps)
2626
ctx.save_for_backward(input_, weight_, bias_, mean, invvar)
2727
return output
2828

0 commit comments

Comments
 (0)