Commit e3c8af26 authored by Patrick von Platen's avatar Patrick von Platen
Browse files

up

parent ca9f7ac2
...@@ -6,6 +6,7 @@ from .pipeline_ddpm import DDPM ...@@ -6,6 +6,7 @@ from .pipeline_ddpm import DDPM
try: try:
from .pipeline_glide import GLIDE from .pipeline_glide import GLIDE
except (NameError, ImportError): except (NameError, ImportError):
class GLIDE: class GLIDE:
pass pass
......
...@@ -31,11 +31,7 @@ try: ...@@ -31,11 +31,7 @@ try:
from transformers.activations import ACT2FN from transformers.activations import ACT2FN
from transformers.modeling_outputs import BaseModelOutput, BaseModelOutputWithPooling from transformers.modeling_outputs import BaseModelOutput, BaseModelOutputWithPooling
from transformers.modeling_utils import PreTrainedModel from transformers.modeling_utils import PreTrainedModel
from transformers.utils import ( from transformers.utils import ModelOutput, add_start_docstrings_to_model_forward, replace_return_docstrings
ModelOutput,
add_start_docstrings_to_model_forward,
replace_return_docstrings,
)
except: except:
print("Transformers is not installed") print("Transformers is not installed")
pass pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment