mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Merge pull request #1381 from ChristophReich1996/master
Fix typo in PositionalEncodingFourier
This commit is contained in:
commit
0e6023f032
@ -104,7 +104,7 @@ default_cfgs = {
|
|||||||
@register_notrace_module # reason: FX can't symbolically trace torch.arange in forward method
|
@register_notrace_module # reason: FX can't symbolically trace torch.arange in forward method
|
||||||
class PositionalEncodingFourier(nn.Module):
|
class PositionalEncodingFourier(nn.Module):
|
||||||
"""
|
"""
|
||||||
Positional encoding relying on a fourier kernel matching the one used in the "Attention is all of Need" paper.
|
Positional encoding relying on a fourier kernel matching the one used in the "Attention is all you Need" paper.
|
||||||
Based on the official XCiT code
|
Based on the official XCiT code
|
||||||
- https://github.com/facebookresearch/xcit/blob/master/xcit.py
|
- https://github.com/facebookresearch/xcit/blob/master/xcit.py
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user