aboutsummaryrefslogtreecommitdiffstats
path: root/modules/safe.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-05-14 10:35:07 +0000
committerAUTOMATIC <16777216c@gmail.com>2023-05-14 10:35:07 +0000
commit89f9faa63388756314e8a1d96cf86bf5e0663045 (patch)
tree86c94057a383c3665f994c0c9ce0c5205deec14f /modules/safe.py
parentb08500cec8a791ef20082628b49b17df833f5dda (diff)
parentdbd13dee3aa7c8e37aa43f30a8272b50ba61e7fe (diff)
downloadstable-diffusion-webui-gfx803-89f9faa63388756314e8a1d96cf86bf5e0663045.tar.gz
stable-diffusion-webui-gfx803-89f9faa63388756314e8a1d96cf86bf5e0663045.tar.bz2
stable-diffusion-webui-gfx803-89f9faa63388756314e8a1d96cf86bf5e0663045.zip
Merge branch 'release_candidate'
Diffstat (limited to 'modules/safe.py')
-rw-r--r--modules/safe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/safe.py b/modules/safe.py
index e6c2f2c0..e1a67f73 100644
--- a/modules/safe.py
+++ b/modules/safe.py
@@ -40,7 +40,7 @@ class RestrictedUnpickler(pickle.Unpickler):
return getattr(collections, name)
if module == 'torch._utils' and name in ['_rebuild_tensor_v2', '_rebuild_parameter', '_rebuild_device_tensor_from_numpy']:
return getattr(torch._utils, name)
- if module == 'torch' and name in ['FloatStorage', 'HalfStorage', 'IntStorage', 'LongStorage', 'DoubleStorage', 'ByteStorage', 'float32']:
+ if module == 'torch' and name in ['FloatStorage', 'HalfStorage', 'IntStorage', 'LongStorage', 'DoubleStorage', 'ByteStorage', 'float32', 'BFloat16Storage']:
return getattr(torch, name)
if module == 'torch.nn.modules.container' and name in ['ParameterDict']:
return getattr(torch.nn.modules.container, name)