File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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 ):
Original file line number Diff line number Diff 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 """
You can’t perform that action at this time.
0 commit comments