SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1512.03385 · CVPR · 2015

Deep Residual Learning for Image Recognition

Kaiming He, Xiangyu Zhang, Jian Sun, Shaoqing Ren

arXiv · PDF · Open in the Atlas

Code that ran

254 of 377 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (108 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 1 violated it and 156 have no contract verdict; 94 failures of our instrument; 123 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/1512.03385.json · badge: /api/ran/1512.03385.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
towhee-io/towhee community
not in the paper's declared repositories
9 ran · 1 no recorded run
anibali/dsnt-pose2d community
not in the paper's declared repositories
8 ran · 2 no recorded run
AyushAniket/ResNET-and-various-normalizations community
Papers with Code archive
7 ran · 0 no recorded run
fchollet/deep-learning-models community (classifier label)
classifier basis not recorded on the link
6 ran · 5 no recorded run
peteryuX/arcface-tf2 community
not in the paper's declared repositories
6 ran · 1 no recorded run
yakhyo/head-pose-estimation community
not in the paper's declared repositories
5 ran · 1 no recorded run
yangorwell/NGPlus community
not in the paper's declared repositories
5 ran · 1 no recorded run
xslidi/EfficientNets_ddl_apex community
not in the paper's declared repositories
5 ran · 0 no recorded run
KellerJordan/ResNet-PyTorch-CIFAR10 community
not in the paper's declared repositories
4 ran · 1 no recorded run
mlvccn/bmtc_transferattackvid community
not in the paper's declared repositories
4 ran · 1 no recorded run
tanjeffreyz/deep-residual-learning community
not in the paper's declared repositories
4 ran · 1 no recorded run
fengredrum/cnn-xla community
not in the paper's declared repositories
4 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
4 ran · 0 no recorded run
oxygen0605/ImageClassification community
not in the paper's declared repositories
3 ran · 5 no recorded run
gpleiss/limits_of_large_width community
not in the paper's declared repositories
3 ran · 1 no recorded run
pytorch/vision community
not in the paper's declared repositories
3 ran · 1 no recorded run
zjZSTU/ResNet community
not in the paper's declared repositories
3 ran · 1 no recorded run
datoboat/Vehicle-Detection community
not in the paper's declared repositories
3 ran · 1 no recorded run
jung-jun-uk/mixface community
not in the paper's declared repositories
3 ran · 1 no recorded run
xinkuansong/modified-resnet-acc-0.9638-10.7M-parameters community
not in the paper's declared repositories
3 ran · 1 no recorded run
alililia/ascend_SE-Net community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
hsd1503/resnet1d community
not in the paper's declared repositories
3 ran · 0 no recorded run
EdenMelaku/Transfer-Learning-Pytorch-Implmentation community
Papers with Code archive
3 ran · 0 no recorded run
calmisential/TensorFlow2.0_ResNet community
not in the paper's declared repositories
3 ran · 0 no recorded run
alecwangcq/KFAC-Pytorch community
not in the paper's declared repositories
3 ran · 0 no recorded run
FunctionStatusWhere it lives
ArcHead Ran
ran; our contract draft was wrong, not the code
peteryuX/arcface-tf2/modules/models.py
code served (permissive licence) · get_code("94e9f5c06b782725")
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 function. 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 tensorflow as tf
import numpy as np

# Set seeds for reproducibility
np.random.seed(0)
tf.random.set_seed(0)

# Create small test tensors
batch_size = 2
embedding_dim = 4
num_classes = 3

# Create dummy embedding input (batch_size, embedding_dim)
x_in = tf.constant(np.random.randn(batch_size, embedding_dim).astype(np.float32))

# Create dummy labels input (batch_size,)
y_in = tf.constant(np.array([0, 1], dtype=np.int32))

ARGS = {
    'num_classes': num_classes,
    'margin': 0.5,
    'logist_scale': 64,
    'name': 'ArcHead'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
ArcMarginPenaltyLogists Ran
ran on a synthesized input · constructed an object; no result was computed
peteryuX/arcface-tf2/modules/models.py
code served (permissive licence) · get_code("4bb92cc74e1dfd84")
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 an instance of its own class, ArcMarginPenaltyLogists: the run constructed the object and did not call it, so no result was computed. 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 tensorflow as tf
import math

# Create small tensors for testing
batch_size = 2
embedding_dim = 4
num_classes = 3

# Create embeddings (batch_size, embedding_dim)
embds = tf.constant([[0.1, 0.2, 0.3, 0.4], [0.5, 0.6, 0.7, 0.8]], dtype=tf.float32)

# Create labels (batch_size,)
labels = tf.constant([0, 2], dtype=tf.int32)

# Define arguments for ArcMarginPenaltyLogists
ARGS = {
    'num_classes': num_classes,
    'margin': 0.5,
    'logist_scale': 64
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArcMarginPenaltyLogists — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ArcMarginPenaltyLogists 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
AvgPoolPadding Ran
ran on a synthesized input
KellerJordan/ResNet-PyTorch-CIFAR10/model.py
pointer only (licence: NONE) · get_code("276da9f80c24c06e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, KellerJordan/ResNet-PyTorch-CIFAR10 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.

Backbone Ran
ran; our contract draft was wrong, not the code
trachpro/arcface-tf2/modules/models.py
code served (permissive licence) · get_code("17fe36be49b222bd")
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 function. 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 tensorflow as tf
import numpy as np

# Create a small input tensor that matches what the backbone function expects
# The function calls x_in.shape[1:] to get input_shape for the models
batch_size = 2
height = 32
width = 32
channels = 3

# Create a TensorFlow tensor with shape (batch_size, height, width, channels)
x_in = tf.random.normal((batch_size, height, width, channels))

ARGS = {
    'backbone_type': 'ResNet50',
    'use_pretrain': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
winycg/MCL-OKD/models/resnet.py
pointer only (licence: NONE) · get_code("6994af792574c2ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, winycg/MCL-OKD 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.

BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
yakhyo/head-pose-estimation/models/resnet.py
code served (permissive licence) · get_code("012ee7c24fabfb91")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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)

# Build a downsample module that the BasicBlock can use
# It needs to accept input and return output of matching spatial dimensions
downsample_module = nn.Sequential(
    nn.Conv2d(3, 4, kernel_size=1, stride=2, bias=False),
    nn.BatchNorm2d(4)
)

# Define ARGS with all parameters for BasicBlock.__init__
ARGS = {
    "in_channels": 3,
    "out_channels": 4,
    "stride": 2,
    "downsample": downsample_module,
    "groups": 1,
    "base_width": 64,
    "dilation": 1,
    "norm_layer": nn.BatchNorm2d
}
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 BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
hsd1503/resnet1d/resnet1d.py
code served (permissive licence) · get_code("6a743eb26da28672")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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 = {
    'in_channels': 3,
    'out_channels': 16,
    'kernel_size': 3,
    'stride': 2,
    'groups': 1,
    'downsample': True,
    'use_bn': True,
    'use_do': False,
    'is_first_block': False
}
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 BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
gpleiss/limits_of_large_width/resnet.py
pointer only (licence: NONE) · get_code("105a09bd01ed60e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gpleiss/limits_of_large_width 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.

BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
EdenMelaku/Transfer-Learning-Pytorch-Implmentation/feature extraction/resnet.py
pointer only (licence: NONE) · get_code("69dcc064c0921eff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, EdenMelaku/Transfer-Learning-Pytorch-Implmentation 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.

BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
canturan10/satellighte/satellighte/archs/resnet/blocks/layers.py
code served (permissive licence) · get_code("b23d4575ecf65e69")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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)

# Define a minimal downsample module that matches what BasicBlock expects
downsample_module = nn.Sequential(
    nn.Conv2d(4, 8, kernel_size=1, stride=2, bias=False),
    nn.BatchNorm2d(8)
)

# Define custom norm layer as a callable
def custom_norm_layer(num_features):
    return nn.BatchNorm2d(num_features)

ARGS = {
    "inplanes": 4,
    "planes": 8,
    "stride": 2,
    "downsample": downsample_module,
    "groups": 1,
    "base_width": 64,
    "dilation": 1,
    "norm_layer": custom_norm_layer
}
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 BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
calmisential/TensorFlow2.0_ResNet/models/resnet.py
code served (permissive licence) · get_code("c2071f075f157e70")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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 tensorflow as tf

ARGS = {
    'filter_num': 32,
    'stride': 1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
hysts/pytorch_resnet_preact/resnet_preact.py
code served (permissive licence) · get_code("2bf68b5c3f31e7fb")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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 = {
    'in_channels': 3,
    'out_channels': 4,
    'stride': 1,
    'remove_first_relu': False,
    'add_last_bn': True,
    'preact': False,
}
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 BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
pytorch/vision/torchvision/models/resnet.py
code served (permissive licence) · get_code("4ab7c79b1cf2f868")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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)

# Build a minimal downsample module that the forward pass might use
downsample_module = nn.Sequential(
    nn.Conv2d(4, 8, kernel_size=1, stride=2, bias=False),
    nn.BatchNorm2d(8)
)

# Build a custom norm layer for testing
norm_layer = nn.BatchNorm2d

ARGS = {
    "inplanes": 4,
    "planes": 8,
    "stride": 2,
    "downsample": downsample_module,
    "groups": 1,
    "base_width": 64,
    "dilation": 1,
    "norm_layer": norm_layer
}
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 BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
AngusG/bn-advex-zhang-fixup/cifar/models/resnet_cifar.py
code served (permissive licence) · get_code("3ebfb7b8c56960e6")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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)

# Build a downsample module that matches the expected interface
# The forward method should take x and return a downsampled tensor
downsample = nn.Sequential(
    nn.Conv2d(4, 8, kernel_size=1, stride=2, bias=False),
    nn.BatchNorm2d(8)
)

ARGS = {
    'inplanes': 4,
    'planes': 8,
    'stride': 2,
    'downsample': downsample
}
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 BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
hysts/pytorch_resnet/resnet.py
code served (permissive licence) · get_code("86b444ba822c8653")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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 = {
    'in_channels': 3,
    'out_channels': 4,
    'stride': 1,
}
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 BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
zjZSTU/ResNet/py/lib/models/resnet/res_net.py
code served (permissive licence) · get_code("765caa93eba4883c")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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)

# Define a minimal downsampling module that the forward method might use
downsample_module = nn.Sequential(
    nn.Conv2d(3, 4, kernel_size=1, stride=2),
    nn.BatchNorm2d(4)
)

# Define a custom norm layer (though we'll use default BatchNorm2d)
norm_layer = nn.BatchNorm2d

ARGS = {
    'inplanes': 3,
    'planes': 4,
    'stride': 2,
    'downsample': downsample_module,
    'norm_layer': norm_layer
}
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 BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
alecwangcq/KFAC-Pytorch/models/cifar/preresnet.py
pointer only (licence: NONE) · get_code("620b59958726409c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, alecwangcq/KFAC-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.

BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
yangorwell/NGPlus/imagenet/resnet_ngplus.py
pointer only (licence: NONE) · get_code("502714a11b64f607")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yangorwell/NGPlus 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.

BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
oskyhn/CNNs-Without-Borders/full_conv/Exp3_image_shifts/models_lpf/resnet.py
code served (permissive licence) · get_code("7805f2173e1f3001")
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 an instance of its own class, BasicBlock: the run constructed the object and did not call it, so no result was computed. 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)

# Define the Downsample class that is used in BasicBlock
class Downsample(nn.Module):
    def __init__(self, filt_size, stride, channels):
        super(Downsample, self).__init__()
        self.stride = stride
        self.filt_size = filt_size
        self.channels = channels
    
    def forward(self, x):
        return x[:, :, ::self.stride, ::self.stride]

# Define a simple downsample module for the downsample parameter
downsample_module = nn.Sequential(
    nn.Conv2d(3, 4, kernel_size=1, stride=2, bias=False),
    nn.BatchNorm2d(4)
)

# Create arguments for BasicBlock
ARGS = {
    'inplanes': 3,
    'planes': 4,
    'stride': 1,
    'downsample': None,
    'groups': 1,
    'norm_layer': nn.BatchNorm2d,
    'filter_size': 1
}
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 BasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicBlock 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
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
adldotori/ResNet/model.py
pointer only (licence: NONE) · get_code("e790d6c4a00047d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, adldotori/ResNet 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.

BasicBlock Ran
ran on a synthesized input
liuyao12/ConvNets-PDE-perspective/resnet.py
code served (permissive licence) · get_code("edd11681768b5cf7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float; 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 torch.nn as nn
import numpy as np
from timm.layers import DropBlock2d, DropPath, AvgPool2dSame, BlurPool2d, GroupNorm, create_attn, get_attn, get_act_layer, get_norm_layer, create_classifier, LayerNorm2d

# Stand-in modules for timm.layers components
class MockDropBlock2d(nn.Module):
    def __init__(self):
        super().__init__()
    def forward(self, x):
        return x

class MockDropPath(nn.Module):
    def __init__(self, drop_prob=0.):
        super().__init__()
        self.drop_prob = drop_prob
    def forward(self, x):
        if self.drop_prob == 0. or not self.training:
            return x
        keep_prob = 1 - self.drop_prob
        shape = (x.shape[0],) + (1,) * (x.ndim - 1)
        random_tensor = keep_prob + torch.rand(shape, dtype=x.dtype)
        random_tensor.floor_()
        return x.div(keep_prob) * random_tensor

class MockAvgPool2dSame(nn.AvgPool2d):
    def __init__(self, kernel_size, stride=None, padding=0, ceil_mode=False, count_include_pad=True):
        super().__init__(kernel_size, stride, padding, ceil_mode, count_include_pad)

class MockBlurPool2d(nn.Module):
    def __init__(self, channels, stride):
        super().__init__()
        self.channels = channels
        self.stride = stride
    def forward(self, x):
        return x[:, :, ::self.stride, ::self.stride]

class MockGroupNorm(nn.GroupNorm):
    def __init__(self, num_groups, num_channels, eps=1e-5, affine=True):
        super().__init__(num_groups, num_channels, eps, affine)

class MockAttention(nn.Module):
    def __init__(self, dim):
        super().__init__()
        self.dim = dim
    def forward(self, x):
        return x

def mock_create_attn(attn_layer, dim):
    return MockAttention(dim) if attn_layer is not None else None

def mock_get_attn(attn_type):
    return MockAttention

def mock_get_act_layer(act_type):
    return nn.ReLU

def mock_get_norm_layer(norm_type):
    if norm_type == 'batchnorm':
        return nn.BatchNorm2d
    elif norm_type == 'groupnorm':
        return MockGroupNorm
    elif norm_type == 'layernorm2d':
        return LayerNorm2d
    return nn.BatchNorm2d

def mock_create_classifier(in_features, num_classes, pool_type='avg'):
    return nn.Linear(in_features, num_classes)

# Patch timm.layers functions
import timm.layers
timm.layers.DropBlock2d = MockDropBlock2d
timm.layers.DropPath = MockDropPath
timm.layers.AvgPool2dSame = MockAvgPool2dSame
timm.layers.BlurPool2d = MockBlurPool2d
timm.layers.GroupNorm = MockGroupNorm
timm.layers.create_attn = mock_create_attn
timm.layers.get_attn = mock_get_attn
timm.layers.get_act_layer = mock_get_act_layer
timm.layers.get_norm_layer = mock_get_norm_layer
timm.layers.create_classifier = mock_create_classifier

# INIT_ARGS for BasicBlock
INIT_ARGS = {
    'inplanes': 4,
    'planes': 8,
    'stride': 1,
    'downsample': nn.Sequential(
        nn.Conv2d(4, 8, kernel_size=1, stride=1, bias=False),
        nn.BatchNorm2d(8)
    ),
    'cardinality': 1,
    'base_width': 64,
    'reduce_first': 1,
    'dilation': 1,
    'first_dilation': None,
    'act_layer': nn.ReLU,
    'norm_layer': nn.BatchNorm2d,
    'attn_layer': 'se',
    'aa_layer': None,
    'drop_block': None,
    'drop_path': MockDropPath(0.1)
}

# ARGS for forward pass
input_tensor = torch.randn(2, 4, 6, 8)  # batch=2, channels=4, height=6, width=8
ARGS = {'x': input_tensor}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, timm, torch — 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 — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
BasicBlock Ran
ran on a synthesized input
mlvccn/bmtc_transferattackvid/Image/models/ResNet.py
pointer only (licence: NONE) · get_code("686b30231d18e983")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mlvccn/bmtc_transferattackvid 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.

BasicBlock3d Ran
ran on a synthesized input
PPPrior/i3d-pytorch/models/backbones/resnet3d.py
pointer only (licence: NONE) · get_code("719e76a84a719c0a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PPPrior/i3d-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.

BasicConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
zjZSTU/ResNet/py/lib/models/resnet/res_net.py
code served (permissive licence) · get_code("4dbe66dec4c673a2")
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 an instance of its own class, BasicConv2d: the run constructed the object and did not call it, so no result was computed. 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)

# BasicConv2d.__init__ takes:
# - in_channels: int
# - out_channels: int
# - norm_layer: optional normalization layer class (defaults to nn.BatchNorm2d)
# - **kwargs: passed to nn.Conv2d (kernel_size, stride, padding, etc.)

ARGS = {
    "in_channels": 3,
    "out_channels": 16,
    "norm_layer": nn.BatchNorm2d,
    "kernel_size": 3,
    "stride": 1,
    "padding": 1,
}
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 BasicConv2d — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicConv2d 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
BasicTransform Ran
ran on a synthesized input · constructed an object; no result was computed
towhee-io/towhee/towhee/models/cvnet/resnet.py
code served (permissive licence) · get_code("64f5b1443283683c")
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 an instance of its own class, BasicTransform: the run constructed the object and did not call it, so no result was computed. 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 = {
    "w_in": 3,
    "w_out": 4,
    "stride": 1,
    "w_b": None,
    "num_gs": 1,
}
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 BasicTransform — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BasicTransform 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
BatchInstanceNorm Ran
ran on a synthesized input · constructed an object; no result was computed
AyushAniket/ResNET-and-various-normalizations/train_cifar.py
pointer only (licence: NONE) · get_code("92d6db8f72d32490")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AyushAniket/ResNET-and-various-normalizations 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.

BatchNorm Ran
ran on a synthesized input · constructed an object; no result was computed
AyushAniket/ResNET-and-various-normalizations/train_cifar.py
pointer only (licence: NONE) · get_code("44111bb98442468d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, AyushAniket/ResNET-and-various-normalizations 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.

BatchNormalization Ran
ran on a synthesized input
peteryuX/arcface-tf2/modules/models.py
code served (permissive licence) · get_code("7657cf9ddc7bd35f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned EagerTensor, ndim 2, dtype family float; 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 tensorflow as tf
import numpy as np

class BatchNormalization(tf.keras.layers.BatchNormalization):
    """Make trainable=False freeze BN for real (the og version is sad).
       ref: https://github.com/zzh8829/yolov3-tf2
    """

    def call(self, x, training=False):
        if training is None:
            training = tf.constant(False)
        training = tf.logical_and(training, self.trainable)
        return super().call(x, training)


INIT_ARGS = {
    'axis': -1,
    'momentum': 0.99,
    'epsilon': 0.001,
    'center': True,
    'scale': True,
    'beta_initializer': 'zeros',
    'gamma_initializer': 'ones',
    'moving_mean_initializer': 'zeros',
    'moving_variance_initializer': 'ones',
    'beta_regularizer': None,
    'gamma_regularizer': None,
    'trainable': True,
}

ARGS = {
    'x': tf.constant(np.random.randn(2, 4).astype(np.float32)),
    'training': False,
}

bn = BatchNormalization(**INIT_ARGS)
output = bn(**ARGS)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Block Ran
ran on a synthesized input · constructed an object; no result was computed
Bao-Jiarong/ResNet/resnet.py
pointer only (licence: NONE) · get_code("400e853d45c39183")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Bao-Jiarong/ResNet 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.

Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
yakhyo/head-pose-estimation/models/resnet.py
code served (permissive licence) · get_code("23e571cc7ee49c29")
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 an instance of its own class, Bottleneck: the run constructed the object and did not call it, so no result was computed. 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
from torch import Tensor

torch.manual_seed(0)

# Create a small downsample module that matches the expected usage
downsample = nn.Sequential(
    nn.Conv2d(64, 256, kernel_size=1, stride=2, bias=False),
    nn.BatchNorm2d(256)
)

ARGS = {
    "inplanes": 64,
    "planes": 64,
    "stride": 2,
    "downsample": downsample,
    "groups": 1,
    "base_width": 64,
    "dilation": 1,
    "norm_layer": nn.BatchNorm2d
}
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 Bottleneck — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Bottleneck 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
Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
ultralytics/yolov5/models/common.py
pointer only (licence: AGPL-3.0) · get_code("641556a532717bff")
How it ran

The body of this sample is withheld: AGPL-3.0, as GitHub detects it on this paper's repository, ultralytics/yolov5, is not in the permissive set Syntology serves inline. 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.

Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
EdenMelaku/Transfer-Learning-Pytorch-Implmentation/feature extraction/resnet.py
pointer only (licence: NONE) · get_code("9ea7ba95f771e336")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, EdenMelaku/Transfer-Learning-Pytorch-Implmentation 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.

Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
yxgeee/MMT/mmt/models/resnet_ibn_a.py
code served (permissive licence) · get_code("71c25f1b22a7ea5a")
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 an instance of its own class, Bottleneck: the run constructed the object and did not call it, so no result was computed. 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)

# Build a minimal downsample module that matches what the forward pass expects
class MinimalDownsample(nn.Module):
    def forward(self, x):
        # Downsample should output same number of channels as planes * expansion
        # Input: (batch, inplanes, height, width)
        # Output: (batch, planes * expansion, height, width)
        return x

# Create valid arguments for Bottleneck
inplanes = 4
planes = 3
stride = 1
ibn = True

# Create downsample: takes inplanes channels and outputs planes * expansion channels
downsample = nn.Sequential(
    nn.Conv2d(inplanes, planes * 4, kernel_size=1, stride=stride, bias=False),
    nn.BatchNorm2d(planes * 4)
)

ARGS = {
    'inplanes': inplanes,
    'planes': planes,
    'ibn': ibn,
    'stride': stride,
    'downsample': downsample
}
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 Bottleneck — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Bottleneck 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
Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
alexsax/midlevel-reps/evkit/models/taskonomy_network.py
code served (permissive licence) · get_code("485109a1d5380143")
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 an instance of its own class, Bottleneck: the run constructed the object and did not call it, so no result was computed. 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)

# Create a simple downsample module that matches the expected behavior
downsample = nn.Sequential(
    nn.Conv2d(64, 256, kernel_size=1, bias=False),
    nn.BatchNorm2d(256)
)

ARGS = {
    'inplanes': 64,
    'planes': 64,
    'stride': 1,
    'downsample': downsample
}
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 Bottleneck — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Bottleneck 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
Bottleneck Ran
ran on a synthesized input
pytorch/vision/torchvision/models/resnet.py
code served (permissive licence) · get_code("b0e96d4bdddc7c3e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 32, 2, 2) 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 torch.nn as nn
from typing import Optional, Callable

def conv1x1(in_planes: int, out_planes: int, stride: int=1) -> nn.Conv2d:
    """1x1 convolution"""
    return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False)

def conv3x3(in_planes: int, out_planes: int, stride: int=1, groups: int=1, dilation: int=1) -> nn.Conv2d:
    """3x3 convolution with padding"""
    return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=dilation, groups=groups, bias=False, dilation=dilation)

class Bottleneck(nn.Module):
    expansion: int = 4

    def __init__(self, inplanes: int, planes: int, stride: int=1, downsample: Optional[nn.Module]=None, groups: int=1, base_width: int=64, dilation: int=1, norm_layer: Optional[Callable[..., nn.Module]]=None) -> None:
        super().__init__()
        if norm_layer is None:
            norm_layer = nn.BatchNorm2d
        width = int(planes * (base_width / 64.0)) * groups
        self.conv1 = conv1x1(inplanes, width)
        self.bn1 = norm_layer(width)
        self.conv2 = conv3x3(width, width, stride, groups, dilation)
        self.bn2 = norm_layer(width)
        self.conv3 = conv1x1(width, planes * self.expansion)
        self.bn3 = norm_layer(planes * self.expansion)
        self.relu = nn.ReLU(inplace=True)
        self.downsample = downsample
        self.stride = stride

    def forward(self, x: torch.Tensor) -> torch.Tensor:
        identity = x
        out = self.conv1(x)
        out = self.bn1(out)
        out = self.relu(out)
        out = self.conv2(out)
        out = self.bn2(out)
        out = self.relu(out)
        out = self.conv3(out)
        out = self.bn3(out)
        if self.downsample is not None:
            identity = self.downsample(x)
        out += identity
        out = self.relu(out)
        return out


# Create a simple downsample module for testing with stride > 1
downsample_module = nn.Sequential(
    conv1x1(8, 32, stride=2),
    nn.BatchNorm2d(32)
)

INIT_ARGS = {
    'inplanes': 8,
    'planes': 8,
    'stride': 2,
    'downsample': downsample_module,
    'groups': 1,
    'base_width': 64,
    'dilation': 1,
    'norm_layer': nn.BatchNorm2d
}

ARGS = {
    'x': torch.randn(2, 8, 4, 3)
}

if __name__ == '__main__':
    bottleneck = Bottleneck(**INIT_ARGS)
    output = bottleneck(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
    print("Bottleneck executed successfully!")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — 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, 32, 2, 2) — shape (2, 32, 2, 2) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
zjZSTU/ResNet/py/lib/models/resnet/res_net.py
code served (permissive licence) · get_code("b8d99c77c05db072")
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 an instance of its own class, Bottleneck: the run constructed the object and did not call it, so no result was computed. 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)

# Create a simple downsample module that matches the expected behavior
downsample = nn.Sequential(
    nn.Conv2d(64, 256, kernel_size=1, stride=2, bias=False),
    nn.BatchNorm2d(256)
)

ARGS = {
    'inplanes': 64,
    'planes': 64,
    'stride': 2,
    'downsample': downsample,
    'norm_layer': nn.BatchNorm2d
}
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 Bottleneck — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Bottleneck 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
Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
alecwangcq/KFAC-Pytorch/models/cifar/preresnet.py
pointer only (licence: NONE) · get_code("b0d0e6800c777b86")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, alecwangcq/KFAC-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.

Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
yangorwell/NGPlus/imagenet/resnet_ngplus.py
pointer only (licence: NONE) · get_code("c967732efc9baa2b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yangorwell/NGPlus 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.

Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
oskyhn/CNNs-Without-Borders/full_conv/Exp3_image_shifts/models_lpf/resnet.py
code served (permissive licence) · get_code("0806d76099ba3e7d")
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 an instance of its own class, Bottleneck: the run constructed the object and did not call it, so no result was computed. 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)

# Define a minimal Downsample class since it's referenced in Bottleneck
class Downsample(nn.Module):
    def __init__(self, filt_size, stride, channels):
        super(Downsample, self).__init__()
        self.stride = stride
        self.filt_size = filt_size
        self.channels = channels
    
    def forward(self, x):
        return x[:, :, ::self.stride, ::self.stride]

# Set up arguments for Bottleneck
inplanes = 4
planes = 3
stride = 1
downsample = None
groups = 1
norm_layer = nn.BatchNorm2d
filter_size = 1

ARGS = {
    "inplanes": inplanes,
    "planes": planes,
    "stride": stride,
    "downsample": downsample,
    "groups": groups,
    "norm_layer": norm_layer,
    "filter_size": filter_size,
}
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 Bottleneck — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Bottleneck 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
Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
kun-woo-park/Deeplearning_project_STL_10/function_class_for_train.py
pointer only (licence: AGPL-3.0) · get_code("9b731793149d80fa")
How it ran

The body of this sample is withheld: AGPL-3.0, as GitHub detects it on this paper's repository, kun-woo-park/Deeplearning_project_STL_10, is not in the permissive set Syntology serves inline. 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.

Bottleneck Ran
ran on a synthesized input · constructed an object; no result was computed
JaidedAI/EasyOCR/easyocr/DBNet/backbones/resnet.py
code served (permissive licence) · get_code("7c6a40fd4a5091f1")
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 an instance of its own class, Bottleneck: the run constructed the object and did not call it, so no result was computed. 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)

# Create a minimal downsample module (1x1 conv + bn to match residual dimensions)
downsample = nn.Sequential(
    nn.Conv2d(64, 256, kernel_size=1, stride=1, bias=False),
    nn.BatchNorm2d(256)
)

# DCN configuration dictionary
dcn_config = {
    'fallback_on_stride': False,
    'modulated': False,
    'deformable_groups': 1
}

ARGS = {
    'inplanes': 64,
    'planes': 64,
    'stride': 1,
    'downsample': downsample,
    'dcn': None
}
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 Bottleneck — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Bottleneck 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
Bottleneck Ran
ran on a synthesized input
mlvccn/bmtc_transferattackvid/Image/models/ResNet.py
pointer only (licence: NONE) · get_code("39051456bc337160")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mlvccn/bmtc_transferattackvid 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.

Bottleneck Ran
ran on a synthesized input
dssbxx/k_labels_resnet50/resnet50.py
pointer only (licence: NONE) · get_code("ebfc9db48632732d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dssbxx/k_labels_resnet50 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.

BottleneckTransform Ran
ran on a synthesized input · constructed an object; no result was computed
towhee-io/towhee/towhee/models/cvnet/resnet.py
code served (permissive licence) · get_code("c3ccbf850bb8ee43")
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 an instance of its own class, BottleneckTransform: the run constructed the object and did not call it, so no result was computed. 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
from torch import nn

torch.manual_seed(0)

# BottleneckTransform parameters:
# w_in: input channels
# w_out: output channels
# stride: stride for the transformation
# w_b: bottleneck width (intermediate channels)
# num_gs: number of groups for grouped convolution

ARGS = {
    "w_in": 64,
    "w_out": 256,
    "stride": 2,
    "w_b": 64,
    "num_gs": 1,
}
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 BottleneckTransform — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a BottleneckTransform 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
CifarResNet Ran
ran on a synthesized input · constructed an object; no result was computed
tanjeffreyz/deep-residual-learning/models.py
pointer only (licence: NONE) · get_code("b7a5cfddd91ed642")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tanjeffreyz/deep-residual-learning 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.

Conv Ran
ran on a synthesized input · constructed an object; no result was computed
ultralytics/yolov5/models/common.py
pointer only (licence: AGPL-3.0) · get_code("268e950e2aec2093")
How it ran

The body of this sample is withheld: AGPL-3.0, as GitHub detects it on this paper's repository, ultralytics/yolov5, is not in the permissive set Syntology serves inline. 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.

ConvBlock Ran
ran; our contract draft was wrong, not the code
datoboat/Vehicle-Detection/detection_pipeline.py
pointer only (licence: NONE) · get_code("b3e852d9b54f9efb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, datoboat/Vehicle-Detection 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.

ConvBlock Ran
ran on a synthesized input · constructed an object; no result was computed
sangHa0411/CIFAR100/model.py
pointer only (licence: NONE) · get_code("aae7cd1c274812b0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sangHa0411/CIFAR100 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.

ConvBlock Ran
ran on a synthesized input
kmzzhang/nbi/src/nbi/nn/resnet.py
pointer only (licence: NOASSERTION) · get_code("6cd28d531eb32fc8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kmzzhang/nbi (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_2D_Block Ran
ran; our contract draft was wrong, not the code
Sakib1263/ResNet-ResNeXt-1D-2D-Tensorflow-Keras/Codes/ResNet_2DCNN.py
code served (permissive licence) · get_code("b6f21090a082496d")
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 KerasTensor. 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 tensorflow as tf
import numpy as np

# Create a small input tensor with shape (batch=2, height=4, width=4, channels=3)
inputs = tf.keras.Input(shape=(4, 4, 3))

# Define parameters for Conv_2D_Block
model_width = 16
kernel = 3
strides = 1

ARGS = {
    'inputs': inputs,
    'model_width': model_width,
    'kernel': kernel,
    'strides': strides
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor 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
ConvolutionalBlock Ran
ran on a synthesized input · constructed an object; no result was computed
sgrvinod/a-pytorch-tutorial-to-super-resolution/models.py
code served (permissive licence) · get_code("20a9cbf63fcc07d7")
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 an instance of its own class, ConvolutionalBlock: the run constructed the object and did not call it, so no result was computed. 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 = {
    'in_channels': 3,
    'out_channels': 64,
    'kernel_size': 3,
    'stride': 1,
    'batch_norm': True,
    'activation': 'leakyrelu'
}
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 ConvolutionalBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ConvolutionalBlock 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
DarknetConv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
fabiofumarola/ultrayolo/ultrayolo/layers/core.py
pointer only (licence: NOASSERTION) · get_code("13ddb01f534c5c18")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, fabiofumarola/ultrayolo (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.

DenseBlock Ran
ran; our contract draft was wrong, not the code
datoboat/Vehicle-Detection/detection_pipeline.py
pointer only (licence: NONE) · get_code("2bee09c647a6d0eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, datoboat/Vehicle-Detection 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.

DoubleConvBlock Ran
ran on a synthesized input
tanjeffreyz/deep-residual-learning/models.py
pointer only (licence: NONE) · get_code("5bcea7ce270d7b2e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tanjeffreyz/deep-residual-learning 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.

DownsampleB Ran
ran on a synthesized input · constructed an object; no result was computed
gpleiss/limits_of_large_width/resnet.py
pointer only (licence: NONE) · get_code("ac43c1629f507b77")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gpleiss/limits_of_large_width 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.

FinalLayer Ran
ran on a synthesized input · constructed an object; no result was computed
wondonghyeon/protest-detection-violence-estimation/util.py
code served (permissive licence) · get_code("5edb2e8bee3de5a1")
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 an instance of its own class, FinalLayer: the run constructed the object and did not call it, so no result was computed. 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)

# FinalLayer.__init__() takes no parameters other than self
# FinalLayer.forward() expects input tensor x of shape (batch, 2048)
# The module uses:
# - self.fc: nn.Linear(2048, 12) - expects input of size 2048
# - self.sigmoid: nn.Sigmoid() - element-wise activation

# Create a small input tensor for testing
# Batch size: 2, Feature dimension: 2048
input_tensor = torch.randn(2, 2048)

ARGS = {}
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 FinalLayer — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a FinalLayer 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
FixupBasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
ben-davidson-6/fixup/cifar/models/fixup_resnet_cifar.py
code served (permissive licence) · get_code("207e40b82333c5c0")
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 an instance of its own class, FixupBasicBlock: the run constructed the object and did not call it, so no result was computed. 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)

def conv3x3(in_planes, out_planes, stride=1):
    """3x3 convolution with padding"""
    return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False)

class FixupBasicBlock(nn.Module):
    expansion = 1

    def __init__(self, inplanes, planes, stride=1, downsample=None):
        super(FixupBasicBlock, self).__init__()
        self.bias1a = nn.Parameter(torch.zeros(1))
        self.conv1 = conv3x3(inplanes, planes, stride)
        self.bias1b = nn.Parameter(torch.zeros(1))
        self.relu = nn.ReLU(inplace=True)
        self.bias2a = nn.Parameter(torch.zeros(1))
        self.conv2 = conv3x3(planes, planes)
        self.scale = nn.Parameter(torch.ones(1))
        self.bias2b = nn.Parameter(torch.zeros(1))
        self.downsample = downsample

    def forward(self, x):
        identity = x
        out = self.conv1(x + self.bias1a)
        out = self.relu(out + self.bias1b)
        out = self.conv2(out + self.bias2a)
        out = out * self.scale + self.bias2b
        if self.downsample is not None:
            identity = self.downsample(x + self.bias1a)
            identity = torch.cat((identity, torch.zeros_like(identity)), 1)
        out += identity
        out = self.relu(out)
        return out

# Create a simple downsample module that reduces spatial dimensions and channels
class SimpleDownsample(nn.Module):
    def __init__(self, in_channels, out_channels, stride=2):
        super(SimpleDownsample, self).__init__()
        self.conv = nn.Conv2d(in_channels, out_channels, kernel_size=1, stride=stride, bias=False)
    
    def forward(self, x):
        return self.conv(x)

# Set up arguments
inplanes = 4
planes = 8
stride = 1
downsample = None

ARGS = {
    "inplanes": inplanes,
    "planes": planes,
    "stride": stride,
    "downsample": downsample,
}
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 FixupBasicBlock — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a FixupBasicBlock 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
FixupResNet Ran
ran on a synthesized input · constructed an object; no result was computed
ben-davidson-6/fixup/cifar/models/fixup_resnet_cifar.py
code served (permissive licence) · get_code("622f385860ac3288")
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 an instance of its own class, FixupResNet: the run constructed the object and did not call it, so no result was computed. 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
import numpy as np

torch.manual_seed(0)

class FixupBasicBlock(nn.Module):
    expansion = 1

    def __init__(self, inplanes, planes, stride=1, downsample=None):
        super(FixupBasicBlock, self).__init__()
        self.bias1a = nn.Parameter(torch.zeros(1))
        self.conv1 = conv3x3(inplanes, planes, stride)
        self.bias1b = nn.Parameter(torch.zeros(1))
        self.relu = nn.ReLU(inplace=True)
        self.bias2a = nn.Parameter(torch.zeros(1))
        self.conv2 = conv3x3(planes, planes)
        self.scale = nn.Parameter(torch.ones(1))
        self.bias2b = nn.Parameter(torch.zeros(1))
        self.downsample = downsample

    def forward(self, x):
        identity = x
        out = self.conv1(x + self.bias1a)
        out = self.relu(out + self.bias1b)
        out = self.conv2(out + self.bias2a)
        out = out * self.scale + self.bias2b
        if self.downsample is not None:
            identity = self.downsample(x + self.bias1a)
            identity = torch.cat((identity, torch.zeros_like(identity)), 1)
        out += identity
        out = self.relu(out)
        return out

def conv3x3(in_planes, out_planes, stride=1):
    """3x3 convolution with padding"""
    return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False)

class FixupResNet(nn.Module):

    def __init__(self, block, layers, num_classes=10):
        super(FixupResNet, self).__init__()
        self.num_layers = sum(layers)
        self.inplanes = 16
        self.conv1 = conv3x3(3, 16)
        self.bias1 = nn.Parameter(torch.zeros(1))
        self.relu = nn.ReLU(inplace=True)
        self.layer1 = self._make_layer(block, 16, layers[0])
        self.layer2 = self._make_layer(block, 32, layers[1], stride=2)
        self.layer3 = self._make_layer(block, 64, layers[2], stride=2)
        self.avgpool = nn.AdaptiveAvgPool2d((1, 1))
        self.bias2 = nn.Parameter(torch.zeros(1))
        self.fc = nn.Linear(64, num_classes)
        for m in self.modules():
            if isinstance(m, FixupBasicBlock):
                nn.init.normal_(m.conv1.weight, mean=0, std=np.sqrt(2 / (m.conv1.weight.shape[0] * np.prod(m.conv1.weight.shape[2:]))) * self.num_layers ** (-0.5))
                nn.init.constant_(m.conv2.weight, 0)
            elif isinstance(m, nn.Linear):
                nn.init.constant_(m.weight, 0)
                nn.init.constant_(m.bias, 0)

    def _make_layer(self, block, planes, blocks, stride=1):
        downsample = None
        if stride != 1:
            downsample = nn.AvgPool2d(1, stride=stride)
        layers = []
        layers.append(block(self.inplanes, planes, stride, downsample))
        self.inplanes = planes
        for _ in range(1, blocks):
            layers.append(block(planes, planes))
        return nn.Sequential(*layers)

    def forward(self, x):
        x = self.conv1(x)
        x = self.relu(x + self.bias1)
        x = self.layer1(x)
        x = self.layer2(x)
        x = self.layer3(x)
        x = self.avgpool(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x + self.bias2)
        return x

ARGS = {
    "block": FixupBasicBlock,
    "layers": [2, 2, 2],
    "num_classes": 10,
}
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 FixupResNet — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a FixupResNet 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
Footer Ran
ran on a synthesized input · constructed an object; no result was computed
tanjeffreyz/deep-residual-learning/models.py
pointer only (licence: NONE) · get_code("2ca37aaddb398cb9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, tanjeffreyz/deep-residual-learning 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.

GeM Ran
ran on a synthesized input
interestingzhuo/foodretreival/imageretrievalnet.py
pointer only (licence: NONE) · get_code("0f30317aa6389614")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, interestingzhuo/foodretreival 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.

Showing the first 60. An agent gets every one from get_harvested_code_for_paper("1512.03385").

Also present in other papers' code

Of 377 samples lifted from this paper's linked repositories, 377 carry a function identity and 0 do not. Of the 369 distinct functions with an identity, 74 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 3 the same month, 72 later) and 295 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
brick of this paper's assembly: helper
686 other papers
6 dated earlier, 680 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
brick of this paper's assembly: helper
431 other papers
3 dated earlier, 427 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
conv3x3
brick of this paper's assembly: helper
312 other papers
2 dated earlier, 309 later, 1 undated · 31 only as an assembly brick
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1507.05717 (2015-07)
An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition
1605.02971 (2016-05)
Structured Receptive Fields in CNNs
and 309 more not named here
swish 32 other papers
32 later
2002.11318 (2020-02)
Can we have it all? On the Trade-off between Spatial and Adversarial Robustness of Neural Networks
2106.01440 (2021-06)
Memory Wrap: a Data-Efficient and Interpretable Extension to Image Classification Models
2106.10807 (2021-06)
Adversarial Examples Make Strong Poisons
and 29 more not named here
drop_connect 29 other papers
29 later
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2002.09564 (2020-02)
Towards Robust and Reproducible Active Learning Using Neural Networks
2002.11318 (2020-02)
Can we have it all? On the Trade-off between Spatial and Adversarial Robustness of Neural Networks
and 26 more not named here
merge 28 other papers
2 dated earlier, 1 the same month, 25 later
1406.1078 (2014-06)
Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
1409.3215 (2014-09)
Sequence to Sequence Learning with Neural Networks
1512.00567 (2015-12)
Rethinking the Inception Architecture for Computer Vision
and 25 more not named here
parse_cli_to_yaml 20 other papers
2 dated earlier, 1 the same month, 17 later
1406.1078 (2014-06)
Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
1409.3215 (2014-09)
Sequence to Sequence Learning with Neural Networks
1512.00567 (2015-12)
Rethinking the Inception Architecture for Computer Vision
and 17 more not named here
conv3x3
brick of this paper's assembly: helper
15 other papers
15 later
1805.04635 (2018-05)
Direction-aware Spatial Context Features for Shadow Detection and Removal
1807.01697 (2018-07)
Benchmarking Neural Network Robustness to Common Corruptions and Surface Variations
1807.10002 (2018-07)
Deep Pictorial Gaze Estimation
and 12 more not named here
parse_yaml 15 other papers
2 dated earlier, 1 the same month, 12 later
1406.1078 (2014-06)
Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
1409.3215 (2014-09)
Sequence to Sequence Learning with Neural Networks
1512.00567 (2015-12)
Rethinking the Inception Architecture for Computer Vision
and 12 more not named here
autopad
brick of this paper's assembly: helper
12 other papers
12 later · 2 only as an assembly brick
1611.02644 (2016-11)
Multispectral Deep Neural Networks for Pedestrian Detection
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
2308.11918 (2023-08)
AMSP-UOD: When Vortex Convolution and Stochastic Perturbation Meet Underwater Object Detection
and 9 more not named here
get_padding
brick of this paper's assembly: helper
10 other papers
10 later
2110.07641 (2021-10)
Non-deep Networks
2203.12827 (2022-03)
Sparse Instance Activation for Real-Time Instance Segmentation
2205.13490 (2022-05)
SemAffiNet: Semantic-Affine Transformation for Point Cloud Segmentation
and 7 more not named here
BasicBlock
brick of this paper's assembly: model
9 other papers
9 later · 4 only as an assembly brick
2108.05722 (2021-08)
MT-ORL: Multi-Task Occlusion Relationship Learning
2303.15555 (2023-03)
Object Discovery from Motion-Guided Tokens
2304.03560 (2023-04)
DualRefine: Self-Supervised Depth and Pose Estimation Through Iterative Epipolar Sampling and Refinement Toward Equilibrium
and 6 more not named here
BasicBlock
brick of this paper's assembly: entry, model
9 other papers
9 later · 5 only as an assembly brick
2002.05709 (2020-02)
A Simple Framework for Contrastive Learning of Visual Representations
2104.10475 (2021-04)
Camouflaged Object Segmentation with Distraction Mining
2108.07948 (2021-08)
Learning Conditional Knowledge Distillation for Degraded-Reference Image Quality Assessment
and 6 more not named here
arg_to_varname 9 other papers
9 later
1911.13299 (2019-11)
What's Hidden in a Randomly Weighted Neural Network?
2104.00298 (2021-04)
EfficientNetV2: Smaller Models and Faster Training
2105.15203 (2021-05)
SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
and 6 more not named here
trim_preceding_hyphens 9 other papers
9 later
1911.13299 (2019-11)
What's Hidden in a Randomly Weighted Neural Network?
2104.00298 (2021-04)
EfficientNetV2: Smaller Models and Faster Training
2105.15203 (2021-05)
SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
and 6 more not named here
Bottleneck
brick of this paper's assembly: model
8 other papers
8 later · 4 only as an assembly brick
2108.05722 (2021-08)
MT-ORL: Multi-Task Occlusion Relationship Learning
2303.15555 (2023-03)
Object Discovery from Motion-Guided Tokens
2306.10014 (2023-06)
Coaching a Teachable Student
and 5 more not named here
_log_api_usage_once
brick of this paper's assembly: helper
8 other papers
8 later · 1 only as an assembly brick
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1905.11946 (2019-05)
EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
and 5 more not named here
argv_to_vars 8 other papers
8 later
1911.13299 (2019-11)
What's Hidden in a Randomly Weighted Neural Network?
2104.00298 (2021-04)
EfficientNetV2: Smaller Models and Faster Training
2110.14068 (2021-10)
Drawing Robust Scratch Tickets: Subnetworks with Inborn Robustness Are Found within Randomly Initialized Networks
and 5 more not named here
conv3x3
brick of this paper's assembly: helper
8 other papers
8 later
1805.11046 (2018-05)
Scalable Methods for 8-bit Training of Neural Networks
2001.07645 (2020-01)
SAUNet: Shape Attentive U-Net for Interpretable Medical Image Segmentation
2003.07069 (2020-03)
Self-Supervised Discovering of Interpretable Features for Reinforcement Learning
and 5 more not named here
Bottleneck
brick of this paper's assembly: model
7 other papers
7 later · 2 only as an assembly brick
2104.10475 (2021-04)
Camouflaged Object Segmentation with Distraction Mining
2110.00990 (2021-10)
Hierarchical Kinematic Probability Distributions for 3D Human Shape and Pose Estimation from Images in the Wild
2204.04662 (2022-04)
FOSTER: Feature Boosting and Compression for Class-Incremental Learning
and 4 more not named here

Shown: the 20 functions present in the most other papers. 54 more shared functions are not listed here.

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

More are linked than shown here.

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

Abstract

Deeper neural networks are more difficult to train. We present a residual learning framework to ease the training of networks that are substantially deeper than those used previously. We explicitly reformulate the layers as learning residual functions with reference to the layer inputs, instead of learning unreferenced functions. We provide comprehensive empirical evidence showing that these residual networks are easier to optimize, and can gain accuracy from considerably increased depth. On the ImageNet dataset we evaluate residual nets with a depth of up to 152 layers-8× deeper than VGG nets [41] but still having lower complexity. An ensemble of these residual nets achieves 3.57% error on the ImageNet test set. This result won the 1st place on the ILSVRC 2015 classification task. We also present analysis on CIFAR-10 with 100 and 1000 layers. The depth of representations is of central importance for many visual recognition tasks. Solely due to our extremely deep representations, we obtain a 28% relative improvement on the COCO object detection dataset. Deep residual nets are foundations of our submissions to ILSVRC & COCO 2015 competitions 1 , where we also won the 1st places on the tasks of ImageNet detection, ImageNet localization, COCO detection, and COCO segmentation.

For agents

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

get_harvested_code_for_paper("1512.03385")
get_code_for_paper("1512.03385")
have("1512.03385")

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

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

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

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

Connect an agent — have() is free.