Removed some no-effect lines used for a debug breakpoint

This commit is contained in:
araleza
2025-08-20 16:49:37 +01:00
parent cd239f0fa9
commit ac8ae581db

View File

@@ -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)