Update experimental_temperature.py
This commit is contained in:
@@ -10,6 +10,7 @@ import os
|
||||
def exists(val):
|
||||
return val is not None
|
||||
|
||||
# better than a division by 0 hey
|
||||
abs_mean = lambda x: torch.where(torch.isnan(x) | torch.isinf(x), torch.zeros_like(x), x).abs().mean()
|
||||
|
||||
class temperature_patcher():
|
||||
|
||||
Reference in New Issue
Block a user