Skip to content

Commit

Permalink
Add msg
Browse files Browse the repository at this point in the history
  • Loading branch information
fealho committed May 16, 2024
1 parent c2a1a6a commit d68475f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sdv/single_table/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,14 @@ def load(cls, filepath):
The loaded synthesizer.
"""
with open(filepath, 'rb') as f:
synthesizer = cloudpickle.load(f)
try:
synthesizer = cloudpickle.load(f)
except RuntimeError:
raise SamplingError(
'This synthesizer was created on a machine with GPU but the current machine is'
' CPU-only. This feature is currently unsupported. We recommend sampling on '
'the same GPU-enabled machine.'
)

check_synthesizer_version(synthesizer)
check_sdv_versions_and_warn(synthesizer)
Expand Down

0 comments on commit d68475f

Please sign in to comment.