diff options
author | Muhammad Rizqi Nur <rizqinur2010@gmail.com> | 2022-11-02 00:25:08 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 00:25:08 +0700 |
commit | f8c6468d42e1202f7aeaeb961ab003aa0a2daf99 (patch) | |
tree | a2542ce9bd8bba1e8aa93acd510a12ca8a0b344f /modules/safe.py | |
parent | 7c8c3715f552378cf81ad28f26fad92b37bd153d (diff) | |
parent | 198a1ffcfc963a3d74674fad560e87dbebf7949f (diff) |
Merge branch 'master' into vae-picker
Diffstat (limited to 'modules/safe.py')
-rw-r--r-- | modules/safe.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/safe.py b/modules/safe.py index 399165a1..348a24fc 100644 --- a/modules/safe.py +++ b/modules/safe.py @@ -32,7 +32,7 @@ class RestrictedUnpickler(pickle.Unpickler): return getattr(collections, name)
if module == 'torch._utils' and name in ['_rebuild_tensor_v2', '_rebuild_parameter']:
return getattr(torch._utils, name)
- if module == 'torch' and name in ['FloatStorage', 'HalfStorage', 'IntStorage', 'LongStorage', 'DoubleStorage']:
+ if module == 'torch' and name in ['FloatStorage', 'HalfStorage', 'IntStorage', 'LongStorage', 'DoubleStorage', 'ByteStorage']:
return getattr(torch, name)
if module == 'torch.nn.modules.container' and name in ['ParameterDict']:
return getattr(torch.nn.modules.container, name)
|