Skip to content

Commit 231dd97

Browse files
committed
docstring
1 parent f12f1e0 commit 231dd97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ctgan/synthesizers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __setstate__(self, state):
107107
state['random_states'] = (current_numpy_state, current_torch_state)
108108

109109
self.__dict__ = state
110-
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
110+
device = _set_device(enable_gpu=True)
111111
self.set_device(device)
112112

113113
def save(self, path):

ctgan/synthesizers/ctgan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class CTGAN(BaseSynthesizer):
143143
Whether to attempt to use GPU for computation.
144144
Defaults to ``True``.
145145
cuda (bool):
146-
** Deprecated ** Whether to attempt to use cuda for GPU computation.
146+
**Deprecated** Whether to attempt to use cuda for GPU computation.
147147
If this is False or CUDA is not available, CPU will be used.
148148
Defaults to ``True``.
149149
"""

0 commit comments

Comments
 (0)