mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-18 16:00:49 +00:00
[fix] multi graphs capture error
This commit is contained in:
@@ -92,7 +92,6 @@ if HAS_TRITON:
|
||||
|
||||
def rms_layernorm(x, weight, eps, norm_output=None, residual=None):
|
||||
# allocate output
|
||||
# y = torch.empty_like(x) if norm_output is None else norm_output
|
||||
y = (
|
||||
x * 0 if norm_output is None else norm_output
|
||||
) # to make the operation non-functional, store y as the intermediate activation
|
||||
|
Reference in New Issue
Block a user