diff options
| author | junyanz <junyanzhu89@gmail.com> | 2018-02-09 18:07:05 -0500 |
|---|---|---|
| committer | junyanz <junyanzhu89@gmail.com> | 2018-02-09 18:07:05 -0500 |
| commit | 4712e422bd5cfee7b5eac45a32b87a01c75b6ddd (patch) | |
| tree | c4e448bfd204474423ad12e3b0026d79f70abd99 /models/test_model.py | |
| parent | b40e20b8d29450efb10a8e84b267d13734ae0c13 (diff) | |
cuda(...) inplace operation
Diffstat (limited to 'models/test_model.py')
| -rw-r--r-- | models/test_model.py | 2 |
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'] |
