mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-10 23:01:22 +00:00
Removed some no-effect lines used for a debug breakpoint
This commit is contained in:
@@ -51,8 +51,6 @@ def copy_kahan_(target: torch.Tensor, source: torch.Tensor, state, update):
|
||||
# Initialize residuals to 0 for first step
|
||||
if state.get('kahan_residuals') is None:
|
||||
state['kahan_residuals'] = torch.zeros_like(source, dtype=torch.int16)
|
||||
else:
|
||||
pass
|
||||
|
||||
# Need this in 32 bit as PyTorch doesn't support mixed 32-bit and 16-bit math operations
|
||||
state['kahan_residuals'] = state['kahan_residuals'].to(source.device).to(dtype=torch.int32)
|
||||
|
||||
Reference in New Issue
Block a user