Skip to content

Commit 00a2dba

Browse files
committed
Type fix?
Signed-off-by: Eric Kerfoot <[email protected]>
1 parent 0550ce8 commit 00a2dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/networks/schedulers/ddpm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def step(
238238
pred_prev_sample = pred_original_sample_coeff * pred_original_sample + current_sample_coeff * sample
239239

240240
# 6. Add noise
241-
variance = 0
241+
variance: int | torch.Tensor = 0
242242
if timestep > 0:
243243
noise = torch.randn(
244244
model_output.size(),

0 commit comments

Comments
 (0)