MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / enable_sliced_attention

Function enable_sliced_attention

cldm/hack.py:17–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def enable_sliced_attention():
18 ldm.modules.attention.CrossAttention.forward = _hacked_sliced_attentin_forward
19 print('Enabled sliced_attention.')
20 return
21
22
23def hack_everything(clip_skip=0):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected