Skip to content

Commit

Permalink
BUGZ
Browse files Browse the repository at this point in the history
  • Loading branch information
Smith42 committed Jan 18, 2022
1 parent 68e6310 commit a9da3d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion denoising_diffusion_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def train(self):
t1 = time()
with open(str(self.logdir / 'loss.txt'), 'a') as df:
df.write(f'{self.step},{loss.item()}\n')
loss.backward(loss / self.gradient_accumulate_every, self.opt)
(loss / self.gradient_accumulate_every).backward()

self.opt.step()
self.opt.zero_grad()
Expand Down

0 comments on commit a9da3d6

Please sign in to comment.