From 57b7a6a0a715074cc11891e7bd6efe7a47da8437 Mon Sep 17 00:00:00 2001 From: David Baldassin Date: Mon, 24 Apr 2023 16:02:05 +0200 Subject: [PATCH] fix indentation error --- networks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/networks.py b/networks.py index 4479d33..fab03cf 100755 --- a/networks.py +++ b/networks.py @@ -127,9 +127,9 @@ def process_data(self, input_data, target_data, loss_fcn, chunk, grad=False): for l in range(int(output.size()[0] / chunk)): output[l * chunk:(l + 1) * chunk] = self(input_data[l * chunk:(l + 1) * chunk]) self.detach_hidden() - # If the data set doesn't divide evenly into the chunk length, process the remainder - if not (output.size()[0] / chunk).is_integer(): - output[(l + 1) * chunk:-1] = self(input_data[(l + 1) * chunk:-1]) + # If the data set doesn't divide evenly into the chunk length, process the remainder + if not (output.size()[0] / chunk).is_integer(): + output[(l + 1) * chunk:-1] = self(input_data[(l + 1) * chunk:-1]) self.reset_hidden() loss = loss_fcn(output, target_data) return output, loss