MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / Transformer2DModel

Class Transformer2DModel

diffusers/src/diffusers/utils/dummy_pt_objects.py:515–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513
514
515class Transformer2DModel(metaclass=DummyObject):
516 _backends = ["torch"]
517
518 def __init__(self, *args, **kwargs):
519 requires_backends(self, ["torch"])
520
521 @classmethod
522 def from_config(cls, *args, **kwargs):
523 requires_backends(cls, ["torch"])
524
525 @classmethod
526 def from_pretrained(cls, *args, **kwargs):
527 requires_backends(cls, ["torch"])
528
529
530class UNet1DModel(metaclass=DummyObject):

Callers 10

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
__init__Method · 0.50
__init__Method · 0.50
__init__Method · 0.50
__init__Method · 0.50
__init__Method · 0.50
__init__Method · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected