SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.00891 · 2021

Event Neural Networks

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 0 failures of our instrument; 0 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/2112.00891.json · badge: /api/ran/2112.00891.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
WISION-Lab/event-nn-pytorch canonical (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
FunctionStatusWhere it lives
as_float32 Ran
ran on a synthesized input
WISION-Lab/event-nn-pytorch/utils/image.py
code served (permissive licence) · get_code("a2088aa7c93d42e0")
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 Tensor, ndim 2, dtype family float, shape (2, 4) 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 torch
import numpy as np

torch.manual_seed(0)

# Test case 1: torch.Tensor with uint8 dtype
tensor_uint8 = torch.randint(0, 256, (2, 4), dtype=torch.uint8)

# Test case 2: numpy array with uint8 dtype
array_uint8 = np.random.randint(0, 256, (2, 4), dtype=np.uint8)

# Test case 3: tuple of ints
tuple_ints = (100, 200, 50)

# Test case 4: list of ints
list_ints = [150, 75, 200]

# Test case 5: other type (float tensor, should pass through)
tensor_float = torch.randn(2, 4)

# We'll test with the first case
ARGS = {
    "x": tensor_uint8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
as_tuple Ran
ran on a synthesized input
WISION-Lab/event-nn-pytorch/eventnn/utils.py
code served (permissive licence) · get_code("8251a829d056dc26")
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, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

torch.manual_seed(0)

# Analyzing the function:
# def as_tuple(x, size):
#     return tuple(x) if type(x) in [list, tuple] else (x,) * size
#
# Parameters:
# - x: can be list, tuple, or something else (will be repeated 'size' times)
# - size: integer used to multiply x if x is not a list/tuple

# Test case 1: x is a list
x_list = [1, 2, 3]
size_1 = 5

# Test case 2: x is a tuple
x_tuple = (4, 5, 6)
size_2 = 3

# Test case 3: x is a scalar (will be repeated)
x_scalar = 10
size_3 = 4

# We need to pick one representative test case
# Let's use a scalar case to demonstrate the function's main behavior
x = 42
size = 3

ARGS = {
    "x": x,
    "size": size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
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
as_uint8 Ran
ran on a synthesized input
WISION-Lab/event-nn-pytorch/utils/image.py
code served (permissive licence) · get_code("9c662f1c46c2721d")
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 Tensor, ndim 2, dtype family int, shape (2, 4) 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 torch
import numpy as np

torch.manual_seed(0)

# Test case 1: torch.Tensor with float dtype
tensor_float = torch.randn(2, 4)

# Test case 2: numpy array with float dtype
numpy_float = np.random.randn(2, 4).astype(np.float32)

# Test case 3: tuple of floats
tuple_floats = (0.5, 0.75, 0.25)

# Test case 4: list of floats
list_floats = [0.1, 0.9, 0.3]

# Test case 5: torch.Tensor already uint8 (no conversion needed)
tensor_uint8 = torch.randint(0, 256, (2, 4), dtype=torch.uint8)

# Test case 6: numpy array already uint8 (no conversion needed)
numpy_uint8 = np.random.randint(0, 256, (2, 4), dtype=np.uint8)

# Create ARGS for the function (it takes one parameter 'x')
ARGS = {
    'x': tensor_float
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 4) — shape (2, 4) 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
centered_pad_and_crop Ran
ran on a synthesized input
WISION-Lab/event-nn-pytorch/utils/image.py
code served (permissive licence) · get_code("1ea4a5f07d6c1c11")
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 Tensor, ndim 4, dtype family float, shape (2, 3, 8, 10) 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 torch
import torchvision.transforms.functional as func

torch.manual_seed(0)

# Create a small tensor with shape (batch, channels, height, width)
# Using distinct dimensions: 2 (batch), 3 (channels), 4 (height), 5 (width)
x = torch.randn(2, 3, 4, 5)

# Target size as (height, width) tuple
size = (8, 10)

# fill parameter for padding
fill = 0

# padding mode
padding_mode = 'constant'

ARGS = {
    'x': x,
    'size': size,
    'fill': fill,
    'padding_mode': padding_mode
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 8, 10) — shape (2, 3, 8, 10) 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
conv1d_output_size Ran
ran on a synthesized input
WISION-Lab/event-nn-pytorch/eventnn/utils.py
code served (permissive licence) · get_code("7552eb64a8294ae5")
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 int, ndim 0, dtype family int, shape () 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.

from math import floor

def conv1d_output_size(i, k, s, p, d):
    return floor((i + 2 * p - k - (k - 1) * (d - 1)) / s) + 1

# All parameters are simple integers representing Conv1d dimensions
# i: input length
# k: kernel size
# s: stride
# p: padding
# d: dilation

ARGS = {
    'i': 32,  # input length
    'k': 3,   # kernel size
    's': 1,   # stride
    'p': 1,   # padding
    'd': 1,   # dilation
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () 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
conv2d_output_size Ran
ran on a synthesized input
WISION-Lab/event-nn-pytorch/eventnn/utils.py
code served (permissive licence) · get_code("85058b7327bf5053")
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, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np
from math import floor

def conv1d_output_size(i, k, s, p, d):
    return floor((i + 2 * p - k - (k - 1) * (d - 1)) / s) + 1

def conv2d_output_size(i, k, s, p, d):
    return tuple((conv1d_output_size(i[j], k[j], s[j], p[j], d[j]) for j in range(2)))

# Set seed for reproducibility
torch.manual_seed(0)

# Construct valid arguments for conv2d_output_size
# Parameters:
# i: input spatial dimensions (tuple of 2 ints for height, width)
# k: kernel sizes (tuple of 2 ints for height, width)
# s: strides (tuple of 2 ints for height, width)
# p: paddings (tuple of 2 ints for height, width)
# d: dilations (tuple of 2 ints for height, width)

ARGS = {
    "i": (32, 64),      # input height=32, width=64
    "k": (3, 5),        # kernel height=3, width=5
    "s": (1, 2),        # stride height=1, width=2
    "p": (1, 2),        # padding height=1, width=2
    "d": (1, 1),        # dilation height=1, width=1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
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
find_bounding_boxes Ran
ran on a synthesized input
WISION-Lab/event-nn-pytorch/datasets/jhmdb.py
code served (permissive licence) · get_code("4613c5323dcd09e3")
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, ndim 4, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

# The function expects:
# - labels: a tensor with shape (..., N, D) where amin/amax operate on dim=-2
# - buffer: a float/int scalar

# Looking at the operations:
# - labels.amin(dim=-2) and labels.amax(dim=-2) reduce over second-to-last dimension
# - The result is multiplied and divided by scalars
# - .int() is called on the result
# So labels should be at least 2D. Let's make it (batch, height, width, channels)
# with distinct dimensions: batch=2, height=4, width=3, channels=5

labels = torch.randn(2, 4, 3, 5)
buffer = 0.1

ARGS = {
    "labels": labels,
    "buffer": buffer,
}
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, ndim 4, dtype family int — a tuple output has no array shape of its own; none is stated
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

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 7 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.

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

Video data is often repetitive; for example, the contents of adjacent frames are usually strongly correlated. Such redundancy occurs at multiple levels of complexity, from low-level pixel values to textures and high-level semantics. We propose Event Neural Networks (EvNets), which leverage this redundancy to achieve considerable computation savings during video inference. A defining characteristic of EvNets is that each neuron has state variables that provide it with long-term memory, which allows low-cost, high-accuracy inference even in the presence of significant camera motion. We show that it is possible to transform a wide range of neural networks into EvNets without re-training. We demonstrate our method on state-of-the-art architectures for both high- and low-level visual processing, including pose recognition, object detection, optical flow, and image enhancement. We observe roughly an order-of-magnitude reduction in computational costs compared to conventional networks, with minimal reductions in model accuracy.

For agents

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

get_harvested_code_for_paper("2112.00891")
get_code_for_paper("2112.00891")
have("2112.00891")

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

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

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

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

Connect an agent — have() is free.