Ross ROSS = Recommend OSS · open-source software intelligence for agents

epfml/attention-cnn resource

Source code for "On the Relationship between Self-Attention and Convolutional Layers" observed · 2026-08-28

github.com/epfml/attention-cnn · homepage · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

32/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 2626
  • days_rel: n/a
  • days_push: 1331
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1121 stars · 129 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Official PyTorch source code for the ICLR 2020 paper 'On the Relationship between Self-Attention and Convolutional Layers', which proves and empirically shows that multi-head self-attention layers can learn to perform convolution. It includes experiment scripts to reproduce all results from the paper.

Use cases

  • reproduce experiments from the self-attention vs convolution paper
  • study how attention layers learn convolutional behavior
  • compare multi-head self-attention with CNN layers on image tasks
  • get a reference PyTorch implementation of attention-based vision models
  • explore research on attention mechanisms in computer vision

When to choose

  • you want to reproduce or extend the paper's experiments
  • you are researching the relationship between self-attention and convolution
  • you need a reference implementation of multi-head self-attention for vision

When to avoid

  • you need a production-ready vision transformer library
  • you want maintained, general-purpose deep learning tooling rather than research code
  • you need a framework with broad model support and community maintenance

Facets

learning-resource · maturity maintenance

deep-learning machine-learning image-processing benchmarking deep-learning computer-vision python self-attention convolution vision-transformer iclr-2020 research-code pytorch reproducibility research linux gpu

1 source

Member repositories

RepositoryRoleHealth v2
epfml/attention-cnnmain32

For agents

markdown · JSON · MCP: product_card(name="epfml/attention-cnn")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem