razmars commited on
Commit
9b041ba
·
verified ·
1 Parent(s): f431e7f

Update modeling_super_linear.py

Browse files
Files changed (1) hide show
  1. modeling_super_linear.py +1 -0
modeling_super_linear.py CHANGED
@@ -213,6 +213,7 @@ class RLinear(nn.Module):
213
 
214
  def forward(self, x):
215
  # x: [Batch, Input length,Channel]
 
216
  if len(x_shape) == 2:
217
  x = x.unsqueeze(-1)
218
 
 
213
 
214
  def forward(self, x):
215
  # x: [Batch, Input length,Channel]
216
+ x_shape = x.shape
217
  if len(x_shape) == 2:
218
  x = x.unsqueeze(-1)
219