Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IceClear/StableSR
/ Encoder
Class
Encoder
ldm/modules/x_transformer.py:541–544 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
539
540
541
class
Encoder(AttentionLayers):
542
def
__init__(self, **kwargs):
543
assert
'causal'
not in kwargs,
'cannot set causality on encoder'
544
super().__init__(causal=False, **kwargs)
545
546
547
Callers
2
__init__
Method · 0.90
__init__
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected