Bug Fixes

This commit is contained in:
Jaret Burkett
2024-05-17 08:41:20 -06:00
parent 5a45c709cd
commit 68b7e159bc
4 changed files with 12 additions and 4 deletions

View File

@@ -78,7 +78,13 @@ class InstantLoRAMidModule(torch.nn.Module):
raise e
# apply tanh to limit values to -1 to 1
# scaler = torch.tanh(scaler)
return x * scaler
try:
return x * scaler
except Exception as e:
print(e)
print(x.shape)
print(scaler.shape)
raise e
class InstantLoRAModule(torch.nn.Module):