🎨 Format Python code with psf/black

This commit is contained in:
ndem0
2024-04-04 12:42:10 +00:00
committed by Nicola Demo
parent 5c50906771
commit 50fb3b731c

View File

@@ -56,11 +56,12 @@ class R3Refinement(Callback):
elif precision == "32-true": elif precision == "32-true":
precision = torch.float32 precision = torch.float32
else: else:
raise RuntimeError("Currently R3Refinement is only implemented " raise RuntimeError(
"for precision '32-true' and '64-true', set " "Currently R3Refinement is only implemented "
"Trainer precision to match one of the " "for precision '32-true' and '64-true', set "
"available precisions.") "Trainer precision to match one of the "
"available precisions."
)
# compute residual # compute residual
res_loss = {} res_loss = {}