MCPcopy Create free account
hub / github.com/OpenGVLab/InternImage / CrossAttention

Class CrossAttention

classification/models/intern_image.py:68–155  ·  view source on GitHub ↗

r""" Cross Attention Module Args: dim (int): Number of input channels. num_heads (int): Number of attention heads. Default: 8 qkv_bias (bool, optional): If True, add a learnable bias to q, k, v. Default: False. qk_scale (float | None, optional): Overr

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected