move accelerator backward outside of autocast context, also calculate total loss correctly across gradient accumulated steps

This commit is contained in:
Phil Wang
2022-07-11 21:02:06 -07:00
parent 1345a8a41d
commit 2b742dd2cc
3 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name = 'denoising-diffusion-pytorch',
packages = find_packages(),
version = '0.25.2',
version = '0.25.3',
license='MIT',
description = 'Denoising Diffusion Probabilistic Models - Pytorch',
author = 'Phil Wang',