SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1605.07146 · British Machine Vision Conference · 2016

Wide Residual Networks

Nikos Komodakis

arXiv · PDF · Open in the Atlas

Code that ran

66 of 96 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (31 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 44 have no contract verdict; 20 failures of our instrument; 30 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/1605.07146.json · badge: /api/ran/1605.07146.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
szagoruyko/wide-residual-networks canonical (classifier label)
classifier basis: census
3 ran · 0 no recorded run
pranavpandey2511/Wide-Residual-Networks community
not in the paper's declared repositories
9 ran · 1 no recorded run
sunnysoni97/single_image_fl community
not in the paper's declared repositories
6 ran · 2 no recorded run
Burf/tfdetection community
not in the paper's declared repositories
5 ran · 1 no recorded run
alililia/wideresnet_Ascend community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
thughost2/Padam community (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
yanivbl6/fixup community
not in the paper's declared repositories
3 ran · 1 no recorded run
AlexandrosFerles/Wide-Residual-Networks-PyTorch community
not in the paper's declared repositories
3 ran · 1 no recorded run
albertmillan/adversarial-training-pytorch community
Papers with Code archive
3 ran · 0 no recorded run
epfl-ml-reproducers/subspace-attack-reproduction community
Papers with Code archive
3 ran · 0 no recorded run
hysts/pytorch_wrn community
not in the paper's declared repositories
2 ran · 1 no recorded run
uclaml/Padam community
not in the paper's declared repositories
2 ran · 1 no recorded run
ewinata/CIFAR-10 community
Papers with Code archive
2 ran · 1 no recorded run
sour4bh/cifar-10 community
not in the paper's declared repositories
2 ran · 0 no recorded run
rishabh135/foodx community
not in the paper's declared repositories
2 ran · 0 no recorded run
junkwhinger/fastautoaugment_jsh community
not in the paper's declared repositories
2 ran · 0 no recorded run
dalgu90/wrn-tensorflow community
Papers with Code archive
1 ran · 4 no recorded run
paradoxysm/wideresnet community
not in the paper's declared repositories
1 ran · 2 no recorded run
lavoiems/Cats-UDT community
not in the paper's declared repositories
1 ran · 0 no recorded run
georgeretsi/SparsityLoss community
not in the paper's declared repositories
1 ran · 0 no recorded run
NickHoernle/semantic_loss community
Papers with Code archive
1 ran · 0 no recorded run
xternalz/WideResNet-pytorch community
not in the paper's declared repositories
1 ran · 0 no recorded run
J911/WRN-pytorch community
Papers with Code archive
1 ran · 0 no recorded run
yoshitomo-matsubara/torchdistill community
not in the paper's declared repositories
1 ran · 0 no recorded run
giannifranchi/LP_BNN community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
BasicBlock Ran
ran on a synthesized input · constructed an object; no result was computed
albertmillan/adversarial-training-pytorch/model.py
code served (permissive licence) · get_code("5cde0ac954f5dae4")
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_planes": 3,
    "out_planes": 16,
    "stride": 1,
    "dropRate": 0.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
pranavpandey2511/Wide-Residual-Networks/wide_resnet.py
pointer only (licence: NONE) · get_code("49d34e5ebca0b127")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pranavpandey2511/Wide-Residual-Networks 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
epfl-ml-reproducers/subspace-attack-reproduction/src/models/cifar/wrn.py
code served (permissive licence) · get_code("1449eb847352fdcb")
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
import random

torch.manual_seed(0)

class BasicBlock(nn.Module):

    def __init__(self, in_planes, out_planes, stride, dropRate=0.0):
        super(BasicBlock, self).__init__()
        self.bn1 = nn.BatchNorm2d(in_planes)
        self.relu1 = nn.ReLU(inplace=True)
        self.conv1 = nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False)
        self.bn2 = nn.BatchNorm2d(out_planes)
        self.relu2 = nn.ReLU(inplace=True)
        self.conv2 = nn.Conv2d(out_planes, out_planes, kernel_size=3, stride=1, padding=1, bias=False)
        self.droprate = dropRate
        self.equalInOut = in_planes == out_planes
        self.convShortcut = not self.equalInOut and nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, padding=0, bias=False) or None
        self.drop = 0

    def forward(self, x):
        if self.equalInOut and random.random() < self.drop:
            return x
        else:
            if not self.equalInOut:
                x = self.relu1(self.bn1(x))
            else:
                out = self.relu1(self.bn1(x))
            out = self.relu2(self.bn2(self.conv1(out if self.equalInOut else x)))
            if self.droprate > 0:
                out = torch.nn.functional.dropout(out, p=self.droprate, training=self.training)
            out = self.conv2(out)
            return torch.add(x if self.equalInOut else self.convShortcut(x), out)

ARGS = {
    'in_planes': 4,
    'out_planes': 8,
    'stride': 1,
    'dropRate': 0.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
hysts/pytorch_wrn/wrn.py
code served (permissive licence) · get_code("0ee8488b47cbd118")
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': 4,
    'out_channels': 8,
    'stride': 1,
    'drop_rate': 0.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
yanivbl6/fixup/model.py
pointer only (licence: NONE) · get_code("c45c358ab8abd266")
How it ran

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

Classifier Ran
ran on a synthesized input · constructed an object; no result was computed
lavoiems/Cats-UDT/src/models/classifier/model.py
pointer only (licence: NONE) · get_code("9a1ef5afc991c407")
How it ran

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

Conv2dAuto Ran
ran on a synthesized input · constructed an object; no result was computed
pranavpandey2511/Wide-Residual-Networks/wide_resnet.py
pointer only (licence: NONE) · get_code("d54899d6ec2f775e")
How it ran

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

DropoutConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
epfl-ml-reproducers/subspace-attack-reproduction/src/models/cifar/wrn.py
code served (permissive licence) · get_code("23bb9229d1548c0e")
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, DropoutConv2d: 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)

# DropoutConv2d is a subclass of nn.Conv2d with dropout applied in forward pass
# It takes input tensor x and applies conv2d followed by dropout
# We need to create valid arguments for instantiation

ARGS = {
    'in_channels': 3,
    'out_channels': 16,
    'kernel_size': 3,
    'stride': 1,
    'padding': 1,
    'dilation': 1,
    'groups': 1,
    'bias': True,
    'drop': 0.5
}
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 DropoutConv2d — 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 DropoutConv2d 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
IndividualBlock1 Ran
ran on a synthesized input · constructed an object; no result was computed
AlexandrosFerles/Wide-Residual-Networks-PyTorch/src/WideResNet.py
pointer only (licence: NONE) · get_code("3b0b11ba6dae2ddb")
How it ran

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

IndividualBlockN Ran
ran on a synthesized input · constructed an object; no result was computed
AlexandrosFerles/Wide-Residual-Networks-PyTorch/src/WideResNet.py
pointer only (licence: NONE) · get_code("0eda4d1950f0ddb6")
How it ran

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

KaimingNormal Ran
ran on a synthesized input · constructed an object; no result was computed
paradoxysm/wideresnet/wideresnet/keras/model.py
code served (permissive licence) · get_code("e8fde91deced6b2c")
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, KaimingNormal: 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
from tensorflow.keras.initializers import VarianceScaling

class KaimingNormal(VarianceScaling):

    def __init__(self, seed=None):
        super(KaimingNormal, self).__init__(scale=2.0, mode='fan_in', distribution='untruncated_normal', seed=seed)

    def get_config(self):
        return {'seed': self.seed}


ARGS = {
    'seed': 42
}
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 KaimingNormal — 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 KaimingNormal 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
Nblock Ran
ran on a synthesized input · constructed an object; no result was computed
AlexandrosFerles/Wide-Residual-Networks-PyTorch/src/WideResNet.py
pointer only (licence: NONE) · get_code("cbb60eddd7a61597")
How it ran

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

Network Ran
ran on a synthesized input · constructed an object; no result was computed
hysts/pytorch_wrn/wrn.py
code served (permissive licence) · get_code("fa25b545375a1f69")
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, Network: 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)

config = {
    'input_shape': (2, 3, 32, 32),  # batch_size=2, channels=3, height=32, width=32
    'n_classes': 10,
    'base_channels': 16,
    'widening_factor': 1,
    'drop_rate': 0.0,
    'depth': 16  # Must satisfy: (depth - 4) % 6 == 0, so (16 - 4) // 6 = 2 blocks per stage
}

ARGS = {
    'config': config
}
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 Network — 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 Network 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
NetworkBlock Ran
ran on a synthesized input · constructed an object; no result was computed
albertmillan/adversarial-training-pytorch/model.py
code served (permissive licence) · get_code("db462e0cc17e19f9")
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, NetworkBlock: 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)

class SimpleBlock(nn.Module):
    def __init__(self, in_planes, out_planes, stride, dropRate=0.0):
        super(SimpleBlock, self).__init__()
        self.conv = nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1)
        self.bn = nn.BatchNorm2d(out_planes)
        self.relu = nn.ReLU(inplace=True)
        
    def forward(self, x):
        out = self.conv(x)
        out = self.bn(out)
        out = self.relu(out)
        return out

ARGS = {
    "nb_layers": 3,
    "in_planes": 4,
    "out_planes": 8,
    "block": SimpleBlock,
    "stride": 2,
    "dropRate": 0.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 NetworkBlock — 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 NetworkBlock 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
NetworkBlock Ran
ran on a synthesized input · constructed an object; no result was computed
sour4bh/cifar-10/wide_resnet.py
pointer only (licence: NONE) · get_code("dc96cf9441e16644")
How it ran

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

NetworkBlock Ran
ran on a synthesized input · constructed an object; no result was computed
rishabh135/foodx/wideresnet.py
pointer only (licence: NONE) · get_code("75491d4aaaddaa7c")
How it ran

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

NetworkBlock Ran
ran on a synthesized input
yanivbl6/fixup/model.py
pointer only (licence: NONE) · get_code("39279dbee87752b7")
How it ran

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

PreConvBlock Ran
ran on a synthesized input
sunnysoni97/single_image_fl/models/cifar_wrn.py
code served (permissive licence) · get_code("5a6927abc3d456e7")
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 tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

INIT_ARGS = {
    'in_channels': 3,
    'out_channels': 4,
    'kernel_size': 3,
    'stride': 1,
    'padding': 1,
    'dilation': 1,
    'bias': False,
    'return_preact': True,
    'activate': True,
}

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

class PreConvBlock(nn.Module):
    """
    Convolution block with Batch normalization and ReLU pre-activation.

    Parameters:
    ----------
    in_channels : int
        Number of input channels.
    out_channels : int
        Number of output channels.
    kernel_size : int or tuple/list of 2 int
        Convolution window size.
    stride : int or tuple/list of 2 int
        Strides of the convolution.
    padding : int or tuple/list of 2 int
        Padding value for convolution layer.
    dilation : int or tuple/list of 2 int, default 1
        Dilation value for convolution layer.
    bias : bool, default False
        Whether the layer uses a bias vector.
    return_preact : bool, default False
        Whether return pre-activation. It's used by PreResNet.
    activate : bool, default True
        Whether activate the convolution block.
    """

    def __init__(self, in_channels, out_channels, kernel_size, stride, padding, dilation=1, bias=False, return_preact=False, activate=True):
        super(PreConvBlock, self).__init__()
        self.return_preact = return_preact
        self.activate = activate
        self.bn = nn.BatchNorm2d(num_features=in_channels)
        if self.activate:
            self.activ = nn.ReLU(inplace=True)
        self.conv = nn.Conv2d(in_channels=in_channels, out_channels=out_channels, kernel_size=kernel_size, stride=stride, padding=padding, dilation=dilation, bias=bias)

    def forward(self, x):
        x = self.bn(x)
        if self.activate:
            x = self.activ(x)
        if self.return_preact:
            x_pre_activ = x
        x = self.conv(x)
        if self.return_preact:
            return (x, x_pre_activ)
        else:
            return x


if __name__ == '__main__':
    block = PreConvBlock(**INIT_ARGS)
    output = block(**ARGS)
    print(f"Output type: {type(output)}")
    if isinstance(output, tuple):
        print(f"Output[0] shape: {output[0].shape}")
        print(f"Output[1] shape: {output[1].shape}")
    else:
        print(f"Output shape: {output.shape}")
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 tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
PreResActivation Ran
ran on a synthesized input · constructed an object; no result was computed
sunnysoni97/single_image_fl/models/cifar_wrn.py
code served (permissive licence) · get_code("cf1d009bfebd71eb")
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, PreResActivation: 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": 16
}
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 PreResActivation — 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 PreResActivation 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
PreResBlock Ran
ran on a synthesized input
sunnysoni97/single_image_fl/models/cifar_wrn.py
code served (permissive licence) · get_code("5879b1ee2e37b3cc")
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 tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# Define the classes
class PreConvBlock(nn.Module):
    def __init__(self, in_channels, out_channels, kernel_size, stride, padding, dilation=1, bias=False, return_preact=False, activate=True):
        super(PreConvBlock, self).__init__()
        self.return_preact = return_preact
        self.activate = activate
        self.bn = nn.BatchNorm2d(num_features=in_channels)
        if self.activate:
            self.activ = nn.ReLU(inplace=True)
        self.conv = nn.Conv2d(in_channels=in_channels, out_channels=out_channels, kernel_size=kernel_size, stride=stride, padding=padding, dilation=dilation, bias=bias)

    def forward(self, x):
        x = self.bn(x)
        if self.activate:
            x = self.activ(x)
        if self.return_preact:
            x_pre_activ = x
        x = self.conv(x)
        if self.return_preact:
            return (x, x_pre_activ)
        else:
            return x

def pre_conv3x3_block(in_channels, out_channels, stride=1, padding=1, dilation=1, return_preact=False, activate=True):
    return PreConvBlock(in_channels=in_channels, out_channels=out_channels, kernel_size=3, stride=stride, padding=padding, dilation=dilation, return_preact=return_preact, activate=activate)

class PreResBlock(nn.Module):
    def __init__(self, in_channels, out_channels, stride):
        super(PreResBlock, self).__init__()
        self.conv1 = pre_conv3x3_block(in_channels=in_channels, out_channels=out_channels, stride=stride, return_preact=True)
        self.conv2 = pre_conv3x3_block(in_channels=out_channels, out_channels=out_channels)

    def forward(self, x):
        x, x_pre_activ = self.conv1(x)
        x = self.conv2(x)
        return (x, x_pre_activ)

INIT_ARGS = {
    "in_channels": 3,
    "out_channels": 4,
    "stride": 1,
}

ARGS = {
    "x": torch.randn(2, 3, 8, 8),
}
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 tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
PreResBottleneck Ran
ran on a synthesized input
sunnysoni97/single_image_fl/models/cifar_wrn.py
code served (permissive licence) · get_code("a4fb20925fe47351")
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 tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

# INIT_ARGS for PreResBottleneck.__init__
INIT_ARGS = {
    'in_channels': 16,
    'out_channels': 32,
    'stride': 2,
    'conv1_stride': True
}

# ARGS for PreResBottleneck.forward
# Input tensor shape: (batch_size, in_channels, height, width)
x = torch.randn(2, 16, 8, 8)

ARGS = {
    'x': x
}
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 tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ResNet18 Ran
ran; our contract draft was wrong, not the code
thughost2/Padam/models/resnet.py
code served (permissive licence) · get_code("0f23e7e681845fe0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ResNet. 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 = {
    "num_classes": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
ResNet50 Ran
ran; our contract draft was wrong, not the code
thughost2/Padam/models/resnet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from jackbrocp/entaugment, is pointer only (licence: NONE) · get_code("21ba14c82993c2fe")
How it ran

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

ResidualBlock Ran
ran on a synthesized input · constructed an object; no result was computed
pranavpandey2511/Wide-Residual-Networks/wide_resnet.py
pointer only (licence: NONE) · get_code("e0ac5c6de5a39187")
How it ran

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

WResNet Ran
ran on a synthesized input · constructed an object; no result was computed
uclaml/Padam/models/wideresnet.py
code served (permissive licence) · get_code("2b8c75e065d4ec06")
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, WResNet: 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 residual block that matches the expected interface
class SimpleBlock(nn.Module):
    expansion = 1
    
    def __init__(self, inplanes, planes, stride=1, downsample=None):
        super(SimpleBlock, self).__init__()
        self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
        self.bn1 = nn.BatchNorm2d(planes)
        self.relu = nn.ReLU(inplace=True)
        self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=1, padding=1, bias=False)
        self.bn2 = nn.BatchNorm2d(planes)
        self.downsample = downsample
        self.stride = stride
    
    def forward(self, x):
        identity = x
        out = self.conv1(x)
        out = self.bn1(out)
        out = self.relu(out)
        out = self.conv2(out)
        out = self.bn2(out)
        if self.downsample is not None:
            identity = self.downsample(x)
        out += identity
        out = self.relu(out)
        return out

# Create a minimal WResNet instance with required attributes
class MinimalWResNet(nn.Module):
    def __init__(self):
        super(MinimalWResNet, self).__init__()
        self.inplanes = 16
        # feats: simple conv + bn layer that outputs spatial dims
        self.feats = nn.Sequential(
            nn.Conv2d(3, 16, kernel_size=3, stride=1, padding=1),
            nn.BatchNorm2d(16)
        )
        # After feats and view, we need fc layer
        # Input to fc: batch_size x (16 * 4 * 4) = 2 x 256
        self.fc = nn.Linear(16 * 4 * 4, 10)
    
    def forward(self, x):
        x = self.feats(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x)
        return x

# Construct ARGS dict for WResNet.__init__()
# WResNet.__init__() takes only self (implicitly), so empty dict
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 WResNet — 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 WResNet 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
WResNet20 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ewinata/CIFAR-10/wresnet20/cifar_10_wresnet20.py
pointer only (licence: NONE) · get_code("30a6dfc0e533f496")
How it ran

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

WResNet_cifar10 Ran
ran on a synthesized input · constructed an object; no result was computed
uclaml/Padam/models/wideresnet.py
code served (permissive licence) · get_code("55bc8b3062749c27")
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, WResNet_cifar10: 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 math

torch.manual_seed(0)

class BasicBlock(nn.Module):
    expansion = 1

    def __init__(self, inplanes, planes, stride=1, downsample=None):
        super(BasicBlock, self).__init__()
        self.conv1 = conv3x3(inplanes, planes, stride)
        self.bn1 = nn.BatchNorm2d(planes)
        self.relu = nn.ReLU(inplace=True)
        self.conv2 = conv3x3(planes, planes)
        self.bn2 = nn.BatchNorm2d(planes)
        self.downsample = downsample
        self.stride = stride

    def forward(self, x):
        residual = x
        out = self.conv1(x)
        out = self.bn1(out)
        out = self.relu(out)
        out = self.conv2(out)
        out = self.bn2(out)
        if self.downsample is not None:
            residual = self.downsample(x)
        out += residual
        out = self.relu(out)
        return out

class WResNet(nn.Module):

    def __init__(self):
        super(WResNet, self).__init__()

    def _make_layer(self, block, planes, blocks, stride=1):
        downsample = None
        if stride != 1 or self.inplanes != planes * block.expansion:
            downsample = nn.Sequential(nn.Conv2d(self.inplanes, planes * block.expansion, kernel_size=1, stride=stride, bias=False), nn.BatchNorm2d(planes * block.expansion))
        layers = []
        layers.append(block(self.inplanes, planes, stride, downsample))
        self.inplanes = planes * block.expansion
        for i in range(1, blocks):
            layers.append(block(self.inplanes, planes))
        return nn.Sequential(*layers)

    def forward(self, x):
        x = self.feats(x)
        x = x.view(x.size(0), -1)
        x = self.fc(x)
        return x

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)

def init_model(model):
    for m in model.modules():
        if isinstance(m, nn.Conv2d):
            n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels
            m.weight.data.normal_(0, math.sqrt(2.0 / n))
        elif isinstance(m, nn.BatchNorm2d):
            m.weight.data.fill_(1)
            m.bias.data.zero_()

class WResNet_cifar10(WResNet):

    def __init__(self, num_classes=10, multiplier=1, block=BasicBlock, depth=18):
        super(WResNet_cifar10, self).__init__()
        self.inplanes = 16 * multiplier
        n = int((depth - 2) / 6)
        self.conv1 = nn.Conv2d(3, 16 * multiplier, kernel_size=3, stride=1, padding=1, bias=False)
        self.bn1 = nn.BatchNorm2d(16 * multiplier)
        self.relu = nn.ReLU(inplace=True)
        self.maxpool = lambda x: x
        self.layer1 = self._make_layer(block, 16 * multiplier, n)
        self.layer2 = self._make_layer(block, 32 * multiplier, n, stride=2)
        self.layer3 = self._make_layer(block, 64 * multiplier, n, stride=2)
        self.layer4 = lambda x: x
        self.avgpool = nn.AvgPool2d(8)
        self.fc = nn.Linear(64 * multiplier, num_classes)
        self.feats = nn.Sequential(self.conv1, self.bn1, self.relu, self.layer1, self.layer2, self.layer3, self.avgpool)
        init_model(self)
        self.regime = {0: {'optimizer': 'SGD', 'lr': 0.1, 'weight_decay': 0.0001, 'momentum': 0.9}, 60: {'lr': 0.02}, 120: {'lr': 0.004}, 140: {'lr': 0.0001}}

ARGS = {
    "num_classes": 10,
    "multiplier": 1,
    "block": BasicBlock,
    "depth": 18,
}
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 WResNet_cifar10 — 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 WResNet_cifar10 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
WideBasic Ran
ran on a synthesized input · constructed an object; no result was computed
junkwhinger/fastautoaugment_jsh/model/net.py
pointer only (licence: NONE) · get_code("f425d67459970c7f")
How it ran

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

WideResNet Ran
ran on a synthesized input · constructed an object; no result was computed
albertmillan/adversarial-training-pytorch/model.py
code served (permissive licence) · get_code("4f075364390609bf")
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, WideResNet: 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 = {
    "depth": 16,
    "num_classes": 10,
    "widen_factor": 1,
    "dropRate": 0.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WideResNet — 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 WideResNet 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
WideResNet Ran
ran on a synthesized input · constructed an object; no result was computed
sour4bh/cifar-10/wide_resnet.py
pointer only (licence: NONE) · get_code("ab4763d767c44a7b")
How it ran

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

WideResNet Ran
ran on a synthesized input · constructed an object; no result was computed
rishabh135/foodx/wideresnet.py
pointer only (licence: NONE) · get_code("8a2f774652784636")
How it ran

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

WideResNet Ran
ran on a synthesized input · constructed an object; no result was computed
junkwhinger/fastautoaugment_jsh/model/net.py
pointer only (licence: NONE) · get_code("f37366c9dbf05e01")
How it ran

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

WideResNet Ran
ran on a synthesized input · constructed an object; no result was computed
georgeretsi/SparsityLoss/wide_resnet.py
code served (permissive licence) · get_code("75596065f5e603bb")
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, WideResNet: 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 = {
    "depth": 16,
    "widen_factor": 2,
    "dropout_rate": 0.3,
    "num_classes": 10,
}
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 WideResNet — 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 WideResNet 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
WideResNet Ran
ran on a synthesized input · constructed an object; no result was computed
epfl-ml-reproducers/subspace-attack-reproduction/src/models/cifar/wrn.py
code served (permissive licence) · get_code("e231d48742afbbd9")
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, WideResNet: 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 math

torch.manual_seed(0)

ARGS = {
    "depth": 16,
    "num_classes": 10,
    "widen_factor": 1,
    "dropRate": 0.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type WideResNet — 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 WideResNet 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
WideResNet Ran
ran on a synthesized input · constructed an object; no result was computed
NickHoernle/semantic_loss/src/experiment/wideresnet.py
pointer only (licence: NONE) · get_code("7a514af67589cdf7")
How it ran

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

WideResNet Ran
ran on a synthesized input
yanivbl6/fixup/model.py
pointer only (licence: NONE) · get_code("9f4f037f1bf7e581")
How it ran

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

WideResNet Ran
ran on a synthesized input
xternalz/WideResNet-pytorch/wideresnet.py
code served (permissive licence) · get_code("c264329463e28884")
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 2, dtype family float, shape (2, 5) 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
import torch.nn.functional as F

class BasicBlock(nn.Module):

    def __init__(self, in_planes, out_planes, stride, dropRate=0.0):
        super(BasicBlock, self).__init__()
        self.bn1 = nn.BatchNorm2d(in_planes)
        self.relu1 = nn.ReLU(inplace=True)
        self.conv1 = nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False)
        self.bn2 = nn.BatchNorm2d(out_planes)
        self.relu2 = nn.ReLU(inplace=True)
        self.conv2 = nn.Conv2d(out_planes, out_planes, kernel_size=3, stride=1, padding=1, bias=False)
        self.droprate = dropRate
        self.equalInOut = in_planes == out_planes
        self.convShortcut = not self.equalInOut and nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, padding=0, bias=False) or None

    def forward(self, x):
        if not self.equalInOut:
            x = self.relu1(self.bn1(x))
        else:
            out = self.relu1(self.bn1(x))
        out = self.relu2(self.bn2(self.conv1(out if self.equalInOut else x)))
        if self.droprate > 0:
            out = F.dropout(out, p=self.droprate, training=self.training)
        out = self.conv2(out)
        return torch.add(x if self.equalInOut else self.convShortcut(x), out)

class NetworkBlock(nn.Module):

    def __init__(self, nb_layers, in_planes, out_planes, block, stride, dropRate=0.0):
        super(NetworkBlock, self).__init__()
        self.layer = self._make_layer(block, in_planes, out_planes, nb_layers, stride, dropRate)

    def _make_layer(self, block, in_planes, out_planes, nb_layers, stride, dropRate):
        layers = []
        for i in range(int(nb_layers)):
            layers.append(block(i == 0 and in_planes or out_planes, out_planes, i == 0 and stride or 1, dropRate))
        return nn.Sequential(*layers)

    def forward(self, x):
        return self.layer(x)

class WideResNet(nn.Module):

    def __init__(self, depth, num_classes, widen_factor=1, dropRate=0.0):
        super(WideResNet, self).__init__()
        nChannels = [16, 16 * widen_factor, 32 * widen_factor, 64 * widen_factor]
        assert (depth - 4) % 6 == 0
        n = (depth - 4) / 6
        block = BasicBlock
        self.conv1 = nn.Conv2d(3, nChannels[0], kernel_size=3, stride=1, padding=1, bias=False)
        self.block1 = NetworkBlock(n, nChannels[0], nChannels[1], block, 1, dropRate)
        self.block2 = NetworkBlock(n, nChannels[1], nChannels[2], block, 2, dropRate)
        self.block3 = NetworkBlock(n, nChannels[2], nChannels[3], block, 2, dropRate)
        self.bn1 = nn.BatchNorm2d(nChannels[3])
        self.relu = nn.ReLU(inplace=True)
        self.fc = nn.Linear(nChannels[3], num_classes)
        self.nChannels = nChannels[3]
        for m in self.modules():
            if isinstance(m, nn.Conv2d):
                nn.init.kaiming_normal_(m.weight, mode='fan_out', nonlinearity='relu')
            elif isinstance(m, nn.BatchNorm2d):
                m.weight.data.fill_(1)
                m.bias.data.zero_()
            elif isinstance(m, nn.Linear):
                m.bias.data.zero_()

    def forward(self, x):
        out = self.conv1(x)
        out = self.block1(out)
        out = self.block2(out)
        out = self.block3(out)
        out = self.relu(self.bn1(out))
        out = F.avg_pool2d(out, 8)
        out = out.view(-1, self.nChannels)
        return self.fc(out)


INIT_ARGS = {
    'depth': 10,
    'num_classes': 5,
    'widen_factor': 1,
    'dropRate': 0.0,
}

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

if __name__ == '__main__':
    model = WideResNet(**INIT_ARGS)
    model.eval()
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: (2, 5)")
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 2, dtype family float, shape (2, 5) — shape (2, 5) 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)
WideResNet Ran
ran on a synthesized input
J911/WRN-pytorch/models/wide_resnet.py
pointer only (licence: NONE) · get_code("1303d3bdd0f0c7e0")
How it ran

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

WideResNet4Cifar Ran
ran on a synthesized input
yoshitomo-matsubara/torchdistill/torchdistill/models/classification/wide_resnet.py
code served (permissive licence) · get_code("6b12b3ed95e41f02")
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 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 torch
import torch.nn as nn
from torch import Tensor

class WideBasicBlock(nn.Module):
    def __init__(self, in_planes, planes, dropout_rate, stride=1):
        super().__init__()
        self.bn1 = nn.BatchNorm2d(in_planes)
        self.relu = nn.ReLU(inplace=True)
        self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
        self.dropout = nn.Dropout2d(p=dropout_rate)
        self.bn2 = nn.BatchNorm2d(planes)
        self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=1, padding=1, bias=False)
        self.shortcut = nn.Sequential()
        if stride != 1 or in_planes != planes:
            self.shortcut = nn.Sequential(
                nn.Conv2d(in_planes, planes, kernel_size=1, stride=stride, bias=False)
            )

    def forward(self, x):
        out = self.bn1(x)
        out = self.relu(out)
        out = self.conv1(out)
        out = self.dropout(out)
        out = self.bn2(out)
        out = self.relu(out)
        out = self.conv2(out)
        out += self.shortcut(x)
        return out

INIT_ARGS = {
    'depth': 10,
    'k': 2,
    'dropout_p': 0.1,
    'block': WideBasicBlock,
    'num_classes': 4,
    'norm_layer': None
}

ARGS = {
    'x': torch.randn(2, 3, 8, 6)  # batch=2, channels=3, height=8, width=6
}
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 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)
WideResNetEncoder Ran
ran on a synthesized input
pranavpandey2511/Wide-Residual-Networks/wide_resnet.py
pointer only (licence: NONE) · get_code("d1fbd37aa3a7dcbc")
How it ran

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

WideResNetLayer Ran
ran on a synthesized input · constructed an object; no result was computed
pranavpandey2511/Wide-Residual-Networks/wide_resnet.py
pointer only (licence: NONE) · get_code("34f0b9ac5504dd23")
How it ran

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

WideResNetResidualBlock Ran
ran on a synthesized input · constructed an object; no result was computed
pranavpandey2511/Wide-Residual-Networks/wide_resnet.py
pointer only (licence: NONE) · get_code("8985f826085e9dbc")
How it ran

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

WideResnetDecoder Ran
ran on a synthesized input · constructed an object; no result was computed
pranavpandey2511/Wide-Residual-Networks/wide_resnet.py
pointer only (licence: NONE) · get_code("a493018b7e696a4d")
How it ran

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

Wide_ResNet Ran
ran on a synthesized input · constructed an object; no result was computed
giannifranchi/LP_BNN/networks/wide_resnet.py
pointer only (licence: NONE) · get_code("b21f570ed5dc6476")
How it ran

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

_relu Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dalgu90/wrn-tensorflow/resnet.py
pointer only (licence: NONE) · get_code("ced619701ea77e0f")
How it ran

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

activation_func Ran
ran; our contract draft was wrong, not the code
pranavpandey2511/Wide-Residual-Networks/wide_resnet.py
pointer only (licence: NONE) · get_code("d816f1aacbe742e6")
How it ran

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

bn_relu_conv Ran
ran; our contract draft was wrong, not the code
pranavpandey2511/Wide-Residual-Networks/wide_resnet.py
pointer only (licence: NONE) · get_code("14c33521c199670f")
How it ran

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

cast Ran
ran; our contract draft was wrong, not the code
szagoruyko/wide-residual-networks/pytorch/utils.py
pointer only (licence: BSD-2-Clause); the stored copy get_code serves, from szagoruyko/diracnets, is pointer only (licence: NONE) · get_code("152b486f18bee7d5")
How it ran

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

conv1x1 Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from MediaBrain-SJTU/BCL
pointer only · get_code("d9def42110729a85")
How it ran

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

conv3x3 Ran
ran; our contract draft was wrong, not the code
thughost2/Padam/models/wideresnet.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

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

conv_block Ran
ran; our contract draft was wrong, not the code
ewinata/CIFAR-10/wresnet20/cifar_10_wresnet20.py
pointer only (licence: NONE) · get_code("85623751f83e4466")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ewinata/CIFAR-10 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_params Ran
ran, honoured the contract we drafted
szagoruyko/wide-residual-networks/pytorch/utils.py
code served (permissive licence) · get_code("1ec5c9d9f327db9e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (4, 3, 1, 1) 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
from torch.nn.init import kaiming_normal_

torch.manual_seed(0)

ARGS = {
    "ni": 3,
    "no": 4,
    "k": 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 Tensor, ndim 4, dtype family float, shape (4, 3, 1, 1) — shape (4, 3, 1, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_time Ran
ran; our contract draft was wrong, not the code
thughost2/Padam/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from JunlinHan/YOCO, is pointer only (licence: NONE) · get_code("8d7ec010c29e813b")
How it ran

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

get_lr Ran
ran on a synthesized input
alililia/wideresnet_Ascend/src/generator_lr.py
code served (permissive licence) · get_code("944d7754b35182e3")
How it ran

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

import numpy as np

ARGS = {
    "total_epochs": 300,
    "steps_per_epoch": 100,
    "lr_init": 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (30000,) — shape (30000,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_top5_acc Ran
ran, honoured the contract we drafted
alililia/wideresnet_Ascend/postprocess.py
code served (permissive licence) · get_code("52a9653519e980d2")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - top5_arg: an iterable of top-5 predictions (likely lists/tensors of 5 class indices)
# - gt_class: an iterable of ground truth class indices
# - The function checks if gt (a single value) is in top5 (a collection)
# - It zips these together, so they should have the same length

# Create small batch of top-5 predictions (batch size 2, each with 5 top classes)
top5_predictions = [
    [0, 1, 2, 3, 4],      # batch item 0: top 5 class indices
    [2, 3, 4, 1, 0]       # batch item 1: top 5 class indices
]

# Create ground truth labels (batch size 2)
ground_truth = [1, 4]  # gt for item 0 is 1, gt for item 1 is 4

ARGS = {
    "top5_arg": top5_predictions,
    "gt_class": ground_truth
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
linear_params Ran
ran; our contract draft was wrong, not the code
szagoruyko/wide-residual-networks/pytorch/utils.py
code served (permissive licence) · get_code("59782f00a3efc31f")
How it ran

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

import torch
from torch.nn.init import kaiming_normal_

torch.manual_seed(0)

# The function linear_params takes two integer parameters: ni (number of inputs) and no (number of outputs)
# It returns a dict with weight and bias tensors initialized appropriately

ni = 4  # number of input features
no = 3  # number of output features

ARGS = {
    'ni': ni,
    'no': no
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_weight Ran
ran; our contract draft was wrong, not the code
Burf/tfdetection/tfdet/model/backbone/resnet.py
code served (permissive licence) · get_code("c1320b85560f6cfb")
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 Sequential. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import tensorflow as tf
import numpy as np

torch.manual_seed(0)

# Create a minimal Keras model with conv, bn, and fc layers
keras_model = tf.keras.Sequential([
    tf.keras.layers.Conv2D(8, 3, input_shape=(4, 4, 3), name='conv2d'),
    tf.keras.layers.BatchNormalization(name='batch_normalization'),
    tf.keras.layers.Flatten(),
    tf.keras.layers.Dense(10, name='dense')
])

# Build the model to initialize weights
keras_model.build(input_shape=(None, 4, 4, 3))

# Create mock torch weights that match the structure expected by load_weight
torch_weights = {
    'conv1.weight': torch.randn(8, 3, 3, 3),  # out_channels, in_channels, h, w
    'bn1.weight': torch.randn(8),
    'bn1.bias': torch.randn(8),
    'bn1.running_mean': torch.randn(8),
    'bn1.running_var': torch.randn(8),
    'fc.weight': torch.randn(10, 512),
    'fc.bias': torch.randn(10),
}

# Mock the torch.hub.load_state_dict_from_url to return our weights
# We'll create a URL string (won't actually be downloaded)
torch_url = "https://example.com/mock_weights.pth"

ARGS = {
    'keras_model': keras_model,
    'torch_url': torch_url,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 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
merge Ran
ran; our contract draft was wrong, not the code
alililia/wideresnet_Ascend/src/model_utils/config.py
code served (permissive licence) · get_code("b9e24c3e3e0e88a7")
How it ran

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

import torch
import argparse

torch.manual_seed(0)

# Create a mock args object with some attributes
args = argparse.Namespace(
    learning_rate=0.001,
    batch_size=32,
    epochs=10,
    model_name="test_model",
    debug=True,
    seed=42
)

# Create a base configuration dictionary
cfg = {
    "default_lr": 0.0001,
    "default_batch": 16,
    "dataset": "cifar10"
}

ARGS = {
    "args": args,
    "cfg": cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize Ran
ran; our contract draft was wrong, not the code
Burf/tfdetection/tfdet/model/backbone/resnet.py
code served (permissive licence) · get_code("95a4808f923054e2")
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 BatchNormalization. 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

# The normalize function creates a BatchNormalization layer with specific parameters
# We need to provide valid arguments for all parameters

ARGS = {
    "axis": -1,
    "momentum": 0.9,
    "epsilon": 1e-05,
}
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 BatchNormalization — a BatchNormalization output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BatchNormalization 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
parse_cli_to_yaml Ran
ran on a synthesized input
alililia/wideresnet_Ascend/src/model_utils/config.py
code served (permissive licence) · get_code("e40d691753e7e653")
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 Namespace. 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 argparse
import ast

# Create a minimal base configuration dictionary
base_cfg = {
    'learning_rate': 0.001,
    'batch_size': 32,
    'epochs': 100,
    'use_cuda': False,
    'model_name': 'resnet50',
    'seed': 42
}

# Create a helper dictionary with descriptions for some parameters
helper_dict = {
    'learning_rate': 'Learning rate for optimizer',
    'batch_size': 'Batch size for training',
    'epochs': 'Number of training epochs',
    'use_cuda': 'Whether to use CUDA',
    'model_name': 'Name of the model to use',
    'seed': 'Random seed for reproducibility'
}

# Create a choices dictionary for parameters with limited options
choices_dict = {
    'model_name': ['resnet50', 'resnet101', 'vgg16'],
    'use_cuda': [True, False]
}

# Create a parent parser (can be empty)
parent_parser = argparse.ArgumentParser(add_help=False)

# Path to config file
config_path = 'resnet50_cifar10_config.yaml'

ARGS = {
    'parser': parent_parser,
    'cfg': base_cfg,
    'helper': helper_dict,
    'choices': choices_dict,
    'cfg_path': config_path
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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

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

Also present in other papers' code

Of 96 samples lifted from this paper's linked repositories, 96 carry a function identity and 0 do not. Of the 96 distinct functions with an identity, 24 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 2 the same month, 17 later) and 72 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
10 dated earlier, 1 the same month, 675 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
5 dated earlier, 1 the same month, 424 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
format_time 37 other papers
1 dated earlier, 36 later
1603.05027 (2016-03)
Identity Mappings in Deep Residual Networks
1805.11327 (2018-05)
Lightweight Probabilistic Deep Networks
1809.00287 (2018-09)
Learning to Navigate for Fine-grained Classification
and 34 more not named here
merge 28 other papers
6 dated earlier, 22 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
ResNet18 27 other papers
27 later
1901.09847 (2019-01)
Error Feedback Fixes SignSGD and other Gradient Compression Schemes
1910.09652 (2019-10)
Kernelized Wasserstein Natural Gradient
2006.13554 (2020-06)
Normalized Loss Functions for Deep Learning with Noisy Labels
and 24 more not named here
ResNet34 24 other papers
24 later
1811.12814 (2018-11)
Graph-Based Global Reasoning Networks
2002.12047 (2020-02)
FMix: Enhancing Mixed Sample Data Augmentation
2006.13554 (2020-06)
Normalized Loss Functions for Deep Learning with Noisy Labels
and 21 more not named here
get_mean_and_std 18 other papers
1 dated earlier, 17 later
1603.05027 (2016-03)
Identity Mappings in Deep Residual Networks
1805.11327 (2018-05)
Lightweight Probabilistic Deep Networks
1906.02629 (2019-06)
When Does Label Smoothing Help?
and 15 more not named here
ResNet50 14 other papers
14 later
1811.12814 (2018-11)
Graph-Based Global Reasoning Networks
2006.13554 (2020-06)
Normalized Loss Functions for Deep Learning with Noisy Labels
2106.06042 (2021-06)
FEDBABU: TOWARD ENHANCED REPRESENTATION FOR FEDERATED IMAGE CLASSIFICATION
and 11 more not named here
NetworkBlock
brick of this paper's assembly: helper, model
5 other papers
5 later · 4 only as an assembly brick
2005.02359 (2020-05)
Classification-Based Anomaly Detection for General Data
2101.06395 (2021-01)
Free Lunch for Few-shot Learning: Distribution Calibration
2303.13813 (2023-03)
Generalist: Decoupling Natural and Robust Generalization
and 2 more not named here
NetworkBlock
brick of this paper's assembly: model
5 other papers
5 later · 5 only as an assembly brick
2106.10891 (2021-06)
Open-set Label Noise Can Improve Robustness Against Inherent Label Noise
2109.05554 (2021-09)
No True State-of-the-Art? OOD Detection Methods are Inconsistent across Datasets
2201.02331 (2022-01)
iDECODe: In-Distribution Equivariance for Conformal Out-of-Distribution Detection
and 2 more not named here
BasicBlock
brick of this paper's assembly: helper, model
4 other papers
4 later · 3 only as an assembly brick
2101.06395 (2021-01)
Free Lunch for Few-shot Learning: Distribution Calibration
2303.13813 (2023-03)
Generalist: Decoupling Natural and Robust Generalization
2304.07306 (2023-04)
Learning to Defer with Limited Expert Predictions
and 1 more not named here
get_top5_acc 3 other papers
3 later
1611.05431 (2016-11)
Aggregated Residual Transformations for Deep Neural Networks
1812.01187 (2018-12)
Bag of Tricks for Image Classification with Convolutional Neural Networks
1911.11907 (2019-11)
GhostNet: More Features from Cheap Operations
normalize
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 3 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1611.05431 (2016-11)
Aggregated Residual Transformations for Deep Neural Networks
1802.02611 (2018-02)
Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation
cast 2 other papers
2 later
1706.00388 (2017-06)
DiracNets: Training Very Deep Neural Networks Without Skip-Connections
1812.11027 (2018-12)
Exploring Weight Symmetry in Deep Neural Networks
PreConvBlock
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
PreResActivation
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
PreResBlock
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
PreResBottleneck
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
PreResUnit
brick of this paper's assembly: helper
1 other paper
1 dated earlier · 1 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
conv_params 1 other paper
1 later
1706.00388 (2017-06)
DiracNets: Training Very Deep Neural Networks Without Skip-Connections

Shown: the 20 functions present in the most other papers. 4 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

Deep residual networks were shown to be able to scale up to thousands of layers and still have improving performance. However, each fraction of a percent of improved accuracy costs nearly doubling the number of layers, and so training very deep residual networks has a problem of diminishing feature reuse, which makes these networks very slow to train. To tackle these problems, in this paper we conduct a detailed experimental study on the architecture of ResNet blocks, based on which we propose a novel architecture where we decrease depth and increase width of residual networks. We call the resulting network structures wide residual networks (WRNs) and show that these are far superior over their commonly used thin and very deep counterparts. For example, we demonstrate that even a simple 16-layer-deep wide residual network outperforms in accuracy and efficiency all previous deep residual networks, including thousand-layerdeep networks, achieving new state-of-the-art results on CIFAR, SVHN, COCO, and significant improvements on ImageNet. Our code and models are available at https: //github.com/szagoruyko/wide-residual-networks.

For agents

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

get_harvested_code_for_paper("1605.07146")
get_code_for_paper("1605.07146")
have("1605.07146")

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

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

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

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

Connect an agent — have() is free.