Remove pytorch_lightning dependency.
parent
cb180b9998
commit
735ac4cf81
@ -0,0 +1,13 @@
|
|||||||
|
import pickle
|
||||||
|
|
||||||
|
load = pickle.load
|
||||||
|
|
||||||
|
class Empty:
|
||||||
|
pass
|
||||||
|
|
||||||
|
class Unpickler(pickle.Unpickler):
|
||||||
|
def find_class(self, module, name):
|
||||||
|
#TODO: safe unpickle
|
||||||
|
if module.startswith("pytorch_lightning"):
|
||||||
|
return Empty
|
||||||
|
return super().find_class(module, name)
|
Loading…
Reference in New Issue