Update modeling_super_linear.py
Browse files- 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 |
|