Apply ruff format and document lint/type tooling in CLAUDE.md
First repo-wide ruff format pass, plus a note in CLAUDE.md to run ruff and ty periodically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-5
@@ -43,11 +43,9 @@ def sample_ddpm(
|
||||
alpha = schedule.alphas[i]
|
||||
alpha_bar = schedule.alpha_bars[i]
|
||||
z = torch.randn_like(x) if i > 0 else torch.zeros_like(x)
|
||||
x = (
|
||||
(1.0 / alpha.sqrt())
|
||||
* (x - (1.0 - alpha) / (1.0 - alpha_bar).sqrt() * eps_pred)
|
||||
+ beta.sqrt() * z
|
||||
)
|
||||
x = (1.0 / alpha.sqrt()) * (
|
||||
x - (1.0 - alpha) / (1.0 - alpha_bar).sqrt() * eps_pred
|
||||
) + beta.sqrt() * z
|
||||
return x
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user