From 4712e422bd5cfee7b5eac45a32b87a01c75b6ddd Mon Sep 17 00:00:00 2001 From: junyanz Date: Fri, 9 Feb 2018 18:07:05 -0500 Subject: cuda(...) inplace operation --- models/pix2pix_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models/pix2pix_model.py') diff --git a/models/pix2pix_model.py b/models/pix2pix_model.py index 78f8d69..79c3fd7 100644 --- a/models/pix2pix_model.py +++ b/models/pix2pix_model.py @@ -57,8 +57,8 @@ class Pix2PixModel(BaseModel): input_A = input['A' if AtoB else 'B'] input_B = input['B' if AtoB else 'A'] if len(self.gpu_ids) > 0: - input_A = input_A.cuda(self.gpu_ids[0], async=True) - input_B = input_B.cuda(self.gpu_ids[0], async=True) + input_A.cuda(self.gpu_ids[0], async=True) + input_B.cuda(self.gpu_ids[0], async=True) self.input_A = input_A self.input_B = input_B self.image_paths = input['A_paths' if AtoB else 'B_paths'] -- cgit v1.2.3-70-g09d2