Skip to content

Commit

Permalink
partial fix for facebookresearch#516
Browse files Browse the repository at this point in the history
  • Loading branch information
blefaudeux committed Nov 22, 2022
1 parent c1b6317 commit 852a058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xformers/triton/layer_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def layer_norm(
and bias is not None
):
return _LayerNorm.apply(x, weight, bias, eps)
except (triton.code_gen.OutOfResources, RuntimeError) as e:
except RuntimeError as e:
# Catch cases where the current GPU does not have enough registers to hold a full tensor line
# fallback to PyTorch's implementation, which streams the tensor in and out
_triton_registered_warnings = True
Expand Down

0 comments on commit 852a058

Please sign in to comment.