Update safe.py

This commit is contained in:
lllyasviel 2024-02-02 21:12:00 -08:00
parent f2b1ee09d4
commit 332c0d0349

View File

@ -1,3 +1,5 @@
import contextlib
TypedStorage = None
@ -29,8 +31,8 @@ def load_with_extra(filename, extra_handler=None, *args, **kwargs):
pass
class Extra:
pass
def Extra(*args, **kwargs):
return contextlib.nullcontext()
unsafe_torch_load = None