SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1811.08383 · 2018

TSM: Temporal Shift Module for Efficient Video Understanding

arXiv · PDF · Open in the Atlas

Code that ran

10 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 5 failures of our instrument; 6 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1811.08383.json · badge: /api/ran/1811.08383.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
sunutf/TSM community (classifier label)
classifier basis not recorded on the link
7 ran · 5 no recorded run
copy not recorded community
not in the paper's declared repositories
2 ran · 1 no recorded run
bespontaneous/mca-pytorch extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
build_dataflow Ran
ran on a synthesized input
sunutf/TSM/main_amp.py
code served (permissive licence) · get_code("dc07c7d74de65f4f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned DataLoader. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.utils.data

torch.manual_seed(0)

class SimpleDataset(torch.utils.data.Dataset):
    def __init__(self, size=8, input_dim=4, output_dim=3):
        self.size = size
        self.input_dim = input_dim
        self.output_dim = output_dim
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        x = torch.randn(self.input_dim)
        y = torch.randint(0, self.output_dim, (1,)).item()
        return x, y

dataset = SimpleDataset(size=8, input_dim=4, output_dim=3)

ARGS = {
    "dataset": dataset,
    "is_train": True,
    "batch_size": 2,
    "workers": 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv1x1 Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from MediaBrain-SJTU/BCL
pointer only · get_code("d9def42110729a85")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv1x1x1 Ran
ran; our contract draft was wrong, not the code
bespontaneous/mca-pytorch/2D_Network/ops/backbone/resnet_TSM.py
pointer only (licence: NONE) · get_code("dfcfb80c1514fe42")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, bespontaneous/mca-pytorch when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from lixiaotong97/DSU
pointer only; the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv_1x1_bn Ran
ran; our contract draft was wrong, not the code
sunutf/TSM/online_demo/mobilenet_v2_tsm.py
pointer only (licence: MIT); the stored copy get_code serves, from zhoudaquan/rethinking_bottleneck_design, is pointer only (licence: NOASSERTION) · get_code("a0131fb70c267a9e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zhoudaquan/rethinking_bottleneck_design, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv_bn Ran
ran; our contract draft was wrong, not the code
sunutf/TSM/online_demo/mobilenet_v2_tsm.py
code served (permissive licence) · get_code("e087cbfa1e53486d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Sequential. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "inp": 3,
    "oup": 16,
    "stride": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
input_fn Ran
ran on a synthesized input
sunutf/TSM/tsm_fpga/fpga_build/model_tf_split/calib_input_split.py
code served (permissive licence) · get_code("a866d9f9275c700a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Build the input_shapes dict with sample keys
# The function checks if '/input' is in the name to decide which data to use
input_shapes = {
    'layer_0/input': (2, 4),
    'layer_1/input': (2, 3),
    'layer_0/shift_concat': (2, 5),
    'layer_1/shift_concat': (2, 6),
}

# Build the input_data dict with sample iterations
# Each iteration contains 'resid' and 'shift_concat' arrays
input_data = {
    0: {
        'resid': np.random.randn(2, 4),
        'shift_concat': np.random.randn(2, 5),
    },
    1: {
        'resid': np.random.randn(2, 4),
        'shift_concat': np.random.randn(2, 5),
    },
    2: {
        'resid': np.random.randn(2, 4),
        'shift_concat': np.random.randn(2, 5),
    },
}

# Define ARGS with the only parameter 'iter'
ARGS = {
    'iter': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_divisible Ran
ran, honoured the contract we drafted
sunutf/TSM/online_demo/mobilenet_v2_tsm.py
pointer only (licence: MIT); the stored copy get_code serves, from chris-boson/fashion_mnist, is pointer only (licence: NONE) · get_code("63ec083689f80f47")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from chris-boson/fashion_mnist, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

process_output Ran
ran on a synthesized input
sunutf/TSM/tsm_fpga/main_tf.py
code served (permissive licence) · get_code("0be9a22aa03cb8bb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# REFINE_OUTPUT is already defined as True in the function
# idx_ should be an integer (token/index)
# history should be a list of integers

idx_value = 5
history_value = [1, 2, 3, 4, 5]

ARGS = {
    "idx_": idx_value,
    "history": history_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
transform Ran
ran on a synthesized input
sunutf/TSM/tsm_fpga/main_tf.py
code served (permissive licence) · get_code("406596818e861a3d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 4, dtype family float, shape (1, 224, 224, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import cv2

# Create a sample frame: 480x640x3 (height, width, channels) in BGR format
# Using uint8 values (0-255) typical of image data
frame = np.random.randint(0, 256, size=(480, 640, 3), dtype=np.uint8)

ARGS = {
    "frame": frame
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float, shape (1, 224, 224, 3) — shape (1, 224, 224, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
bninception Not yet run
unverified (harvested, no recorded run)
sunutf/TSM/archs/bn_inception.py
code served (permissive licence) · get_code("c89c29bd79c97227")
How it ran

no invocation recorded.

init_hidden Not yet run
unverified (harvested, no recorded run)
sunutf/TSM/ops/models_rnn.py
code served (permissive licence) · get_code("05f08d45ec764f25")
How it ran

no invocation recorded.

make_temporal_shift Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from rijuldhir/TSM
pointer only · get_code("ea903b20756dc01d")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

torch_params Not yet run
unverified (harvested, no recorded run)
sunutf/TSM/tsm_fpga/mobilenet_v2_tfslim.py
code served (permissive licence) · get_code("47e316f6d90b3490")
How it ran

no invocation recorded.

torch_to_conv_state Not yet run
unverified (harvested, no recorded run)
sunutf/TSM/tsm_fpga/mobilenet_v2_tfslim.py
code served (permissive licence) · get_code("9823b80aaa256ebd")
How it ran

no invocation recorded.

torch_to_linear_state Not yet run
unverified (harvested, no recorded run)
sunutf/TSM/tsm_fpga/mobilenet_v2_tfslim.py
code served (permissive licence) · get_code("b85fde19d195b87f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 11 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 11 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
conv3x3 686 other papers
72 dated earlier, 6 the same month, 608 later · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
conv1x1 431 other papers
18 dated earlier, 2 the same month, 410 later, 1 undated · 38 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1506.01186 (2015-06)
Cyclical Learning Rates for Training Neural Networks
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
and 428 more not named here
conv_1x1_bn 31 other papers
2 dated earlier, 29 later · 2 only as an assembly brick
1703.07402 (2017-03)
Simple Online and Realtime Tracking with a Deep Association Metric
1801.04381 (2018-01)
MobileNetV2: Inverted Residuals and Linear Bottlenecks
1812.00332 (2018-12)
ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardware
and 28 more not named here
conv_bn 18 other papers
3 dated earlier, 15 later · 1 only as an assembly brick
1611.06403 (2016-11)
Deep Outdoor Illumination Estimation
1703.07402 (2017-03)
Simple Online and Realtime Tracking with a Deep Association Metric
1801.04381 (2018-01)
MobileNetV2: Inverted Residuals and Linear Bottlenecks
and 15 more not named here
make_divisible 12 other papers
2 dated earlier, 10 later · 1 only as an assembly brick
1503.03832 (2015-03)
FaceNet: A Unified Embedding for Face Recognition and Clustering
1801.04381 (2018-01)
MobileNetV2: Inverted Residuals and Linear Bottlenecks
1812.00332 (2018-12)
ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardware
and 9 more not named here
bninception 2 other papers
2 later
2005.06803 (2020-05)
TAM: Temporal Adaptive Module for Video Recognition
2203.13611 (2022-03)
Class-Incremental Learning for Action Recognition in Videos
make_temporal_shift 2 other papers
1 dated earlier, 1 later
1608.00859 (2016-08)
Temporal Segment Networks: Towards Good Practices for Deep Action Recognition
2203.13611 (2022-03)
Class-Incremental Learning for Action Recognition in Videos
conv1x1x1 1 other paper
1 later
2007.09933 (2020-07)
MotionSqueeze: Neural Motion Feature Learning for Video Understanding
torch_params 1 other paper
1 later
2203.13611 (2022-03)
Class-Incremental Learning for Action Recognition in Videos
torch_to_conv_state 1 other paper
1 later
2203.13611 (2022-03)
Class-Incremental Learning for Action Recognition in Videos
torch_to_linear_state 1 other paper
1 later
2203.13611 (2022-03)
Class-Incremental Learning for Action Recognition in Videos

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The explosive growth in video streaming gives rise to challenges on performing video understanding at high accuracy and low computation cost. Conventional 2D CNNs are computationally cheap but cannot capture temporal relationships; 3D CNN based methods can achieve good performance but are computationally intensive, making it expensive to deploy. In this paper, we propose a generic and effective Temporal Shift Module (TSM) that enjoys both high efficiency and high performance. Specifically, it can achieve the performance of 3D CNN but maintain 2D CNN's complexity. TSM shifts part of the channels along the temporal dimension; thus facilitate information exchanged among neighboring frames. It can be inserted into 2D CNNs to achieve temporal modeling at zero computation and zero parameters. We also extended TSM to online setting, which enables real-time low-latency online video recognition and video object detection. TSM is accurate and efficient: it ranks the first place on the Something-Something leaderboard upon publication; on Jetson Nano and Galaxy Note8, it achieves a low latency of 13ms and 35ms for online video recognition. The code is available at: https://github.com/mit-han-lab/temporal-shift-module.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1811.08383")
get_code_for_paper("1811.08383")
have("1811.08383")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1811.08383.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1811.08383.svg)](https://syntology.ai/paper/1811.08383)

Connect an agent — have() is free.