MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / Transformer

Class Transformer

mmdet/models/utils/transformer.py:539–621  ·  view source on GitHub ↗

Implements the DETR transformer. Following the official DETR implementation, this module copy-paste from torch.nn.Transformer with modifications: * positional encodings are passed in MultiheadAttention * extra LN at the end of encoder is removed * decoder returns a

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

test_transformerFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_transformerFunction · 0.72