summaryrefslogtreecommitdiff
path: root/models/test_model.py
diff options
context:
space:
mode:
authorjunyanz <junyanzhu89@gmail.com>2018-02-09 18:07:05 -0500
committerjunyanz <junyanzhu89@gmail.com>2018-02-09 18:07:05 -0500
commit4712e422bd5cfee7b5eac45a32b87a01c75b6ddd (patch)
treec4e448bfd204474423ad12e3b0026d79f70abd99 /models/test_model.py
parentb40e20b8d29450efb10a8e84b267d13734ae0c13 (diff)
cuda(...) inplace operation
Diffstat (limited to 'models/test_model.py')
-rw-r--r--models/test_model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/test_model.py b/models/test_model.py
index f593c46..35b7402 100644
--- a/models/test_model.py
+++ b/models/test_model.py
@@ -28,7 +28,7 @@ class TestModel(BaseModel):
# we need to use single_dataset mode
input_A = input['A']
if len(self.gpu_ids) > 0:
- input_A = input_A.cuda(self.gpu_ids[0], async=True)
+ input_A.cuda(self.gpu_ids[0], async=True)
self.input_A = input_A
self.image_paths = input['A_paths']