MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / __init__

Method __init__

src/diffusers/models/attention_processor.py:1209–1211  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1207 """
1208
1209 def __init__(self):
1210 if not hasattr(F, "scaled_dot_product_attention"):
1211 raise ImportError("AttnProcessor2_0 requires PyTorch 2.0, to use it, please upgrade PyTorch to 2.0.")
1212
1213 def __call__(
1214 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected