forked from mrq/DL-Art-School
Fix srg computer bug
This commit is contained in:
parent
0dfd8eaf3b
commit
912a4d9fea
|
@ -253,6 +253,8 @@ class ConfigurableSwitchComputer(nn.Module):
|
|||
else:
|
||||
x = x1 + rand_feature
|
||||
|
||||
if not isinstance(x, tuple):
|
||||
x = (x,)
|
||||
if self.pre_transform:
|
||||
x = self.pre_transform(*x)
|
||||
if not isinstance(x, tuple):
|
||||
|
|
Loading…
Reference in New Issue
Block a user