ohayonguy commited on
Commit
7f45a1a
·
1 Parent(s): 2cba219
arch/hourglass/image_transformer_v2.py CHANGED
@@ -92,7 +92,7 @@ def linear_geglu(x, weight, bias=None):
92
  if bias is not None:
93
  x = x + bias
94
  x, gate = x.chunk(2, dim=-1)
95
- return x * F.gelu(gate)
96
 
97
 
98
  def rms_norm(x, scale, eps):
 
92
  if bias is not None:
93
  x = x + bias
94
  x, gate = x.chunk(2, dim=-1)
95
+ return x.clone() * F.gelu(gate.clone())
96
 
97
 
98
  def rms_norm(x, scale, eps):