SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.04675 · NeurIPS · 2023

Exposing flaws of generative model evaluation metrics and their unfair treatment of diffusion models

Gabriel Loaiza-Ganem, Anthony Caterini, Jesse Cresswell, George Stein, Valentin Villecroze, Zhaoyan Liu, Rasa Hosseinzadeh, Yi Sui, Brendan Leigh, J Eric, T Taylor

arXiv · PDF · Open in the Atlas

Code that ran

53 of 63 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 6 honoured the contract we drafted, 2 violated it and 19 have no contract verdict; 26 failures of our instrument; 10 no recorded run); 3 of them were also run on the host, not in the jail, by the peer-agreement lane that set their level, 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/2306.04675.json · badge: /api/ran/2306.04675.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
Zhendong-Wang/Diffusion-GAN canonical (classifier label)
classifier basis: census
17 ran · 2 no recorded run
google-research/maskgit canonical (classifier label)
classifier basis: census
12 ran · 2 no recorded run
SHI-Labs/StyleNAT canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
rtqichen/residual-flows canonical (classifier label)
classifier basis: census
7 ran · 0 no recorded run
Rayhane-mamah/Efficient-VDVAE canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
layer6ai-labs/dgm-eval canonical (classifier label)
classifier basis: classifier_2025
2 ran · 1 no recorded run
autonomousvision/projected-gan canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
sbarratt/inception-score-pytorch canonical (classifier label)
classifier basis: census
0 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
geometric_logprob Ran
ran; our contract draft was wrong, not the code
rtqichen/residual-flows/qualitative_samples.py
code served (permissive licence) · get_code("3e0a8dc623475d8e")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T23:24:44Z). 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

torch.manual_seed(0)

# ns: number of trials (geometric distribution parameter)
# Should be a tensor of positive integers
ns = torch.tensor([[1, 2, 3, 4],
                   [2, 3, 4, 5]], dtype=torch.float32)

# p: probability parameter for geometric distribution
# Should be a tensor of probabilities in (0, 1)
p = torch.tensor([[0.1, 0.2, 0.3, 0.4],
                  [0.5, 0.6, 0.7, 0.8]], dtype=torch.float32)

ARGS = {
    "ns": ns,
    "p": p,
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_tuple Ran
ran, honoured the contract we drafted
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/dataset_tool.py
pointer only (licence: MIT); the stored copy get_code serves, from pdillis/stylegan3-fun, is pointer only (licence: NOASSERTION) · get_code("9cd07419f7c926f8")
How it ran

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

window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SHI-Labs/StyleNAT/models/generator.py
code served (permissive licence) · get_code("144d10b49baeb8a6")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 4, dtype family float, shape (8, 4, 4, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:38:58Z). 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

torch.manual_seed(0)

# Create a tensor with shape (B, H, W, C)
# B=2 (batch), H=8 (height), W=8 (width), C=4 (channels)
# Using distinct sizes: 2, 8, 8, 4
x = torch.randn(2, 8, 8, 4)

# window_size must divide both H and W evenly
# H=8, W=8, so window_size=4 works (8 // 4 = 2)
window_size = 4

ARGS = {
    "x": x,
    "window_size": window_size,
}
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 Tensor, ndim 4, dtype family float, shape (8, 4, 4, 4) — shape (8, 4, 4, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
DiffAugment Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/pg_modules/diffaug.py
code served (permissive licence) · get_code("da4e9834e767ce2d")
How it ran

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

torch.manual_seed(0)

# Create a small input tensor: batch_size=2, channels=3, height=4, width=5
x = torch.randn(2, 3, 4, 5, dtype=torch.float32)

# Define ARGS dict with all parameters for DiffAugment
ARGS = {
    'x': x,
    'policy': 'color,translation,cutout',
    'channels_first': True
}
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 (2, 3, 4, 5) — shape (2, 3, 4, 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: none by the harness; any seed is in the setup block
NormLayer Ran
ran; our contract draft was wrong, not the code
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/pg_modules/blocks.py
code served (permissive licence) · get_code("ef1e7dffb5d433d4")
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 BatchNorm2d. 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 = {
    'c': 16,
    'mode': 'batch'
}
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 BatchNorm2d — a BatchNorm2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a BatchNorm2d 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
UpBlockBig Ran
ran; our contract draft was wrong, not the code
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/pg_modules/blocks.py
code served (permissive licence) · get_code("f87cd99314206f72")
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 torch.nn as nn
from torch.nn.utils import spectral_norm

torch.manual_seed(0)

def conv2d(*args, **kwargs):
    return spectral_norm(nn.Conv2d(*args, **kwargs))

def NormLayer(c, mode='batch'):
    if mode == 'group':
        return nn.GroupNorm(c // 2, c)
    elif mode == 'batch':
        return nn.BatchNorm2d(c)

class GLU(nn.Module):

    def forward(self, x):
        nc = x.size(1)
        assert nc % 2 == 0, 'channels dont divide 2!'
        nc = int(nc / 2)
        return x[:, :nc] * torch.sigmoid(x[:, nc:])

class NoiseInjection(nn.Module):

    def __init__(self):
        super().__init__()
        self.weight = nn.Parameter(torch.zeros(1), requires_grad=True)

    def forward(self, feat, noise=None):
        if noise is None:
            batch, _, height, width = feat.shape
            noise = torch.randn(batch, 1, height, width).to(feat.device)
        return feat + self.weight * noise

def UpBlockBig(in_planes, out_planes):
    block = nn.Sequential(nn.Upsample(scale_factor=2, mode='nearest'), conv2d(in_planes, out_planes * 2, 3, 1, 1, bias=False), NoiseInjection(), NormLayer(out_planes * 2), GLU(), conv2d(out_planes, out_planes * 2, 3, 1, 1, bias=False), NoiseInjection(), NormLayer(out_planes * 2), GLU())
    return block

ARGS = {
    'in_planes': 4,
    'out_planes': 8,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
UpBlockSmall Ran
ran; our contract draft was wrong, not the code
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/pg_modules/blocks.py
code served (permissive licence) · get_code("0186912dcb8b92b9")
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 torch.nn as nn
from torch.nn.utils import spectral_norm

torch.manual_seed(0)

def conv2d(*args, **kwargs):
    return spectral_norm(nn.Conv2d(*args, **kwargs))

def NormLayer(c, mode='batch'):
    if mode == 'group':
        return nn.GroupNorm(c // 2, c)
    elif mode == 'batch':
        return nn.BatchNorm2d(c)

class GLU(nn.Module):

    def forward(self, x):
        nc = x.size(1)
        assert nc % 2 == 0, 'channels dont divide 2!'
        nc = int(nc / 2)
        return x[:, :nc] * torch.sigmoid(x[:, nc:])

def UpBlockSmall(in_planes, out_planes):
    block = nn.Sequential(nn.Upsample(scale_factor=2, mode='nearest'), conv2d(in_planes, out_planes * 2, 3, 1, 1, bias=False), NormLayer(out_planes * 2), GLU())
    return block

ARGS = {
    'in_planes': 4,
    'out_planes': 8
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
apply_label_smoothing Ran
ran, violated the contract we drafted
google-research/maskgit/maskgit/libml/losses.py
code served (permissive licence) · get_code("1b2e0a7656cc76a7")
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 ArrayImpl, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp
import numpy as np

# Create a small one-hot encoded targets array
# Shape: [batch_size=2, num_classes=4]
batch_size = 2
num_classes = 4
one_hot_targets = jnp.array([
    [1.0, 0.0, 0.0, 0.0],
    [0.0, 1.0, 0.0, 0.0]
], dtype=jnp.float32)

# Label smoothing parameter (scalar in [0, 1])
label_smoothing = 0.1

ARGS = {
    "one_hot_targets": one_hot_targets,
    "label_smoothing": label_smoothing
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
basic_logdet_estimator Ran
ran; our contract draft was wrong, not the code
rtqichen/residual-flows/resflows/layers/iresblock.py
code served (permissive licence) · get_code("9b16691c6712e596")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple neural network that takes x and produces g
class SimpleNet(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(6, 6)
    
    def forward(self, x):
        return self.linear(x)

# Setup
batch_size = 2
dim = 6

# Create input tensor with requires_grad=True (needed for autograd.grad)
x = torch.randn(batch_size, dim, requires_grad=True)

# Create a simple model and compute g
model = SimpleNet()
g = model(x)

# n_power_series: number of terms in the power series
n_power_series = 3

# vareps: random perturbation vector with same shape as x
vareps = torch.randn(batch_size, dim)

# coeff_fn: a function that takes an integer k and returns a coefficient
def coeff_fn(k):
    return 1.0

# training: boolean flag
training = True

ARGS = {
    'g': g,
    'x': x,
    'n_power_series': n_power_series,
    'vareps': vareps,
    'coeff_fn': coeff_fn,
    'training': training
}
Setup block drafted by
a language model, Claude Sonnet 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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
batch_jacobian Ran
ran; our contract draft was wrong, not the code
rtqichen/residual-flows/resflows/layers/iresblock.py
code served (permissive licence) · get_code("85a4b5aac95f359d")
How it ran

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

import torch

torch.manual_seed(0)

# Create input tensor x with requires_grad=True
batch_size = 2
input_dim = 3
x = torch.randn(batch_size, input_dim, requires_grad=True)

# Create a simple computation that produces g from x
# g should have shape (batch_size, output_dim)
output_dim = 4
W = torch.randn(input_dim, output_dim)
g = torch.matmul(x, W)

ARGS = {
    'g': g,
    'x': x
}
Setup block drafted by
a language model, Claude Sonnet 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 Tensor, ndim 3, dtype family float, shape (2, 4, 3) — shape (2, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
batch_trace Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rtqichen/residual-flows/resflows/layers/iresblock.py
code served (permissive licence) · get_code("70b3429a213d3584")
How it ran

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

import torch

torch.manual_seed(0)

# The function expects M to be a batched matrix where it:
# 1. Reshapes to (batch_size, -1) to flatten each matrix
# 2. Slices with step M.shape[1] + 1 to get diagonal elements
# 3. Sums along dimension 1 to get trace for each batch
# So M should be a 3D tensor of shape (batch, n, n) for square matrices

# Using batch=2, matrix size 4x4
M = torch.randn(2, 4, 4)

ARGS = {'M': M}
Setup block drafted by
a language model, Claude Sonnet 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 Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
beta_softplus Ran
ran on a synthesized input
Rayhane-mamah/Efficient-VDVAE/efficient_vdvae_jax/model/latent_layers.py
code served (permissive licence) · get_code("9bd8ee32e810e900")
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 ArrayImpl, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp
import numpy as np

# Create input array - small array for testing
x = jnp.array([[1.0, 2.0, 3.0, 4.0],
               [0.5, 1.5, 2.5, 3.5]])

# Create beta parameter - scalar value controlling smoothness
beta = 2.0

ARGS = {
    'x': x,
    'beta': beta
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
chunk Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from vicgalle/stable-diffusion-aesthetic-gradients
pointer only; the stored copy get_code serves, from vicgalle/stable-diffusion-aesthetic-gradients, is pointer only (licence: NOASSERTION) · get_code("8241c0562bc710fd")
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.

count_parameters Ran
ran, honoured the contract we drafted
rtqichen/residual-flows/train_toy.py
code served (permissive licence) · get_code("f6b944f50d3f15ae")
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 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 torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
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 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
data_sampler Ran
ran on a synthesized input
SHI-Labs/StyleNAT/dataset/dataset.py
code served (permissive licence) · get_code("258c1af08f41aa17")
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 RandomSampler. 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.utils.data import Dataset, DataLoader, RandomSampler, SequentialSampler
from torch.utils.data.distributed import DistributedSampler

torch.manual_seed(0)

class SimpleDataset(Dataset):
    def __init__(self, size=10):
        self.size = size
    
    def __len__(self):
        return self.size
    
    def __getitem__(self, idx):
        return torch.randn(4), torch.randint(0, 2, (1,))

dataset = SimpleDataset(size=10)

ARGS = {
    "dataset": dataset,
    "shuffle": True,
    "distributed": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RandomSampler — a RandomSampler output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RandomSampler 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
file_ext Ran
ran; our contract draft was wrong, not the code
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/dataset_tool.py
pointer only (licence: MIT); the stored copy get_code serves, from pdillis/stylegan3-fun, is pointer only (licence: NOASSERTION) · get_code("a2b45afa097b55b6")
How it ran

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

format_time Ran
ran; our contract draft was wrong, not the code
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/dnnlib/util.py
pointer only (licence: MIT); the stored copy get_code serves, from ntuaislab/DRAG, is pointer only (licence: NOASSERTION) · get_code("053fc534bc6bb989")
How it ran

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

format_time_brief Ran
ran; our contract draft was wrong, not the code
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/dnnlib/util.py
pointer only (licence: MIT); the stored copy get_code serves, from ntuaislab/DRAG, is pointer only (licence: NOASSERTION) · get_code("77f4aa0649e7f404")
How it ran

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

get_dataloader_from_path Ran
ran; our contract draft was wrong, not the code
layer6ai-labs/dgm-eval/dgm_eval/__main__.py
code served (permissive licence) · get_code("de1462c410a454f6")
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 list. 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 mock model_transform function
class MockTransform(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        if isinstance(x, torch.Tensor):
            return self.linear(x)
        return x

model_transform = MockTransform()

# Create a mock args object with required attributes
class MockArgs:
    def __init__(self):
        self.nsample = 10
        self.batch_size = 2
        self.seed = 42

args = MockArgs()

# Mock the get_dataloader function that is called inside get_dataloader_from_path
def get_dataloader(path, nsample, batch_size, num_workers, seed=None, sample_w_replacement=False, transform=None):
    # Create a simple mock dataloader (list of batches)
    data = []
    for i in range(nsample):
        x = torch.randn(4)
        y = torch.tensor(i % 2)
        if transform:
            x = transform(x)
        data.append((x, y))
    return data

# Inject the mock function into the module namespace
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'get_dataloader', get_dataloader)

# Define ARGS with all parameters for get_dataloader_from_path
ARGS = {
    'path': '/mock/data/path',
    'model_transform': model_transform,
    'num_workers': 2,
    'args': args,
    'sample_w_replacement': False
}
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 list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_device_and_num_workers Ran
ran; our contract draft was wrong, not the code
layer6ai-labs/dgm-eval/dgm_eval/__main__.py
code served (permissive licence) · get_code("0e74fdd296ca6e73")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 os
import sys

torch.manual_seed(0)

# Test case 1: Both parameters are None (default behavior)
device_arg = None
num_workers_arg = None

ARGS = {
    'device': device_arg,
    'num_workers': num_workers_arg
}
Setup block drafted by
a language model, Claude Sonnet 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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_haar_wavelet Ran
ran on a synthesized input
SHI-Labs/StyleNAT/models/discriminator.py
code served (permissive licence) · get_code("9865a02804b0266f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, 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

torch.manual_seed(0)

ARGS = {
    "in_channels": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_hyper Ran
ran; our contract draft was wrong, not the code
google-research/maskgit/maskgit/configs/base_config.py
code served (permissive licence) · get_code("ffc38a27fd9393ba")
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 list, ndim 1, 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

class MockHyperparameter:
    def __init__(self):
        self.sweeps = {}
        self.products = []
    
    def sweep(self, name, values):
        """Create a sweep over values"""
        self.sweeps[name] = values
        return {name: values}
    
    def product(self, sweeps, name=None):
        """Create a product of sweeps"""
        result = []
        for sweep in sweeps:
            if isinstance(sweep, dict):
                for key, values in sweep.items():
                    for value in values:
                        result.append({key: value})
        return result

h = MockHyperparameter()

ARGS = {
    'h': h
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_hyper Ran
ran; our contract draft was wrong, not the code
google-research/maskgit/maskgit/configs/maskgit_class_cond_config.py
code served (permissive licence) · get_code("7dfd4d71b4b83843")
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
import torch.nn as nn


class HyperparameterConfig:
    """Stand-in class for hyperparameter configuration object."""
    
    def __init__(self):
        self.params = {}
    
    def sweep(self, key, values):
        """Mock sweep method that stores sweep configuration."""
        return {'key': key, 'values': values}
    
    def product(self, sweeps, name=None):
        """Mock product method that combines sweeps."""
        return {
            'type': 'product',
            'sweeps': sweeps,
            'name': name
        }


h = HyperparameterConfig()

ARGS = {
    'h': h
}
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
get_hyper Ran
ran on a synthesized input
google-research/maskgit/maskgit/configs/vqgan_config.py
code served (permissive licence) · get_code("cd108d44d16c6e3c")
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
import torch.nn as nn

torch.manual_seed(0)

class MockHyperObject:
    """Mock object that has a product method"""
    def product(self, keys, name=None):
        """Returns a dict with the given name as key"""
        return {name: "config_value"}

h = MockHyperObject()

ARGS = {
    'h': h
}
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
get_lr_schedule Ran
ran on a synthesized input
Rayhane-mamah/Efficient-VDVAE/efficient_vdvae_jax/model/schedules.py
code served (permissive licence) · get_code("8c4274c2f8994da8")
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 NarrowCosineDecay. 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 jax
import jax.numpy as jnp

ARGS = {
    'decay_scheme': 'cosine',
    'init_lr': 0.001,
    'warmup_steps': 1000,
    'decay_steps': 10000,
    'decay_rate': 0.96,
    'decay_start': 1000,
    'min_lr': 0.00001
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NarrowCosineDecay — a NarrowCosineDecay output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NarrowCosineDecay 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
get_norm_layer Ran
ran on a synthesized input
google-research/maskgit/maskgit/nets/layers.py
code served (permissive licence) · get_code("1983d19e3e1ab60d")
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 partial. 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 functools
import jax
import jax.numpy as jnp
import flax.linen as nn

ARGS = {
    'train': True,
    'dtype': jnp.float32,
    'norm_type': 'BN'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type partial — a partial output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a partial 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
l1_loss Ran
ran on a synthesized input
google-research/maskgit/maskgit/libml/losses.py
code served (permissive licence) · get_code("06f87811f5c2b96a")
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 ArrayImpl, ndim 0, dtype family float, 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 jax.numpy as jnp
import numpy as np

# Create small sample tensors for y_true and y_pred
y_true = jnp.array([[1.0, 2.0, 3.0, 4.0],
                     [5.0, 6.0, 7.0, 8.0]], dtype=jnp.float32)

y_pred = jnp.array([[1.1, 2.1, 2.9, 4.2],
                     [4.9, 6.1, 7.1, 7.8]], dtype=jnp.float32)

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 0, dtype family float, 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
layout_grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/gen_video.py
code served (permissive licence) · get_code("456c172851946697")
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 ndarray, ndim 3, dtype family int, shape (4, 10, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small batch of images
# batch_size=2, channels=3, height=4, width=5
img = torch.randn(2, 3, 4, 5)

# Normalize to roughly [-1, 1] range for float_to_uint8 conversion
img = img / 10.0

ARGS = {
    "img": img,
    "grid_w": None,
    "grid_h": 1,
    "float_to_uint8": True,
    "chw_to_hwc": True,
    "to_numpy": True,
}
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 ndarray, ndim 3, dtype family int, shape (4, 10, 3) — shape (4, 10, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_kernel Ran
ran, violated the contract we drafted
SHI-Labs/StyleNAT/models/basic_layers.py
pointer only (licence: MIT); the stored copy get_code serves, from dkn16/multi-fidel-gan-21cm, is pointer only (licence: NOASSERTION) · get_code("6f65e378a4313f87")
How it ran

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

make_transform Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/gen_images.py
code served (permissive licence) · get_code("f47dff4b7b27bba7")
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 ndarray, ndim 2, dtype family float, shape (3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "translate": (1.5, 2.5),
    "angle": 45.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 2, dtype family float, shape (3, 3) — shape (3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
maybe_min Ran
ran, honoured the contract we drafted
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/dataset_tool.py
pointer only (licence: MIT); the stored copy get_code serves, from pdillis/stylegan3-fun, is pointer only (licence: NOASSERTION) · get_code("dd1dc700e87f36cc")
How it ran

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

normalize_second_moment Ran
ran on a synthesized input
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/pg_modules/networks_fastgan.py
code served (permissive licence) · get_code("02870cd90e053ab0")
How it ran

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

import torch
import torch.nn as nn

torch.manual_seed(0)

# Construct a small tensor for input
# The function expects x to have a square() method and support mean() with dim and keepdim parameters
# These are standard torch tensor operations
x = torch.randn(2, 4)  # batch_size=2, feature_dim=4

# The dim parameter specifies which dimension to compute the second moment over
dim = 1

# eps is a small constant for numerical stability
eps = 1e-08

ARGS = {
    "x": x,
    "dim": dim,
    "eps": eps
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_comma_separated_list Ran
ran; our contract draft was wrong, not the code
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/calc_metrics.py
pointer only (licence: MIT); the stored copy get_code serves, from nv-tlabs/GET3D, is pointer only (licence: NOASSERTION) · get_code("d01b68a634f71551")
How it ran

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

parse_range Ran
ran, honoured the contract we drafted
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/gen_images.py
code served (permissive licence) · get_code("236de8614a178382")
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 list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
from typing import List, Optional, Tuple, Union

def parse_range(s: Union[str, List]) -> List[int]:
    """Parse a comma separated list of numbers or ranges and return a list of ints.

    Example: '1,2,5-10' returns [1, 2, 5, 6, 7]
    """
    if isinstance(s, list):
        return s
    ranges = []
    range_re = re.compile('^(\\d+)-(\\d+)$')
    for p in s.split(','):
        m = range_re.match(p)
        if m:
            ranges.extend(range(int(m.group(1)), int(m.group(2)) + 1))
        else:
            ranges.append(int(p))
    return ranges


# Test case 1: string with ranges and individual numbers
ARGS = {
    "s": "1,2,5-10"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_range Ran
ran, honoured the contract we drafted
autonomousvision/projected-gan/gen_video.py
code served (permissive licence) · get_code("025e4c7cda618f25")
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 list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re
from typing import List, Optional, Tuple, Union

def parse_range(s: Union[str, List[int]]) -> List[int]:
    """Parse a comma separated list of numbers or ranges and return a list of ints.

    Example: '1,2,5-10' returns [1, 2, 5, 6, 7]
    """
    if isinstance(s, list):
        return s
    ranges = []
    range_re = re.compile('^(\\d+)-(\\d+)$')
    for p in s.split(','):
        m = range_re.match(p)
        if m:
            ranges.extend(range(int(m.group(1)), int(m.group(2)) + 1))
        else:
            ranges.append(int(p))
    return ranges


# Test with string input
ARGS = {
    "s": "1,2,5-10"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_tuple Ran
ran on a synthesized input
autonomousvision/projected-gan/gen_video.py
code served (permissive licence) · get_code("6a0f2095bdd516ab")
How it ran

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

import re
from typing import Tuple, Union

def parse_tuple(s: Union[str, Tuple[int, int]]) -> Tuple[int, int]:
    """Parse a 'M,N' or 'MxN' integer tuple.

    Example:
        '4x2' returns (4,2)
        '0,1' returns (0,1)
    """
    if isinstance(s, tuple):
        return s
    m = re.match('^(\\d+)[x,](\\d+)$', s)
    if m:
        return (int(m.group(1)), int(m.group(2)))
    raise ValueError(f'cannot parse tuple {s}')


ARGS = {
    "s": "4x2"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
parse_vec2 Ran
ran, honoured the contract we drafted
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/gen_images.py
code served (permissive licence) · get_code("180016b9227381b1")
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 tuple, ndim 1, 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 numpy as np
from typing import Union, Tuple

torch.manual_seed(0)

# The function parse_vec2 takes a single parameter 's' which can be either:
# - a string in format 'a,b' (e.g., '0,1')
# - a tuple of two floats (e.g., (0.0, 1.0))
# 
# The function either returns the tuple directly if input is tuple,
# or parses the string and returns a tuple of floats.

# Test case 1: string input
test_string = "0.5,1.5"

# Test case 2: tuple input
test_tuple = (2.0, 3.5)

# We'll use the string case as the primary test
ARGS = {
    "s": "0.5,1.5"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rand_brightness Ran
ran; our contract draft was wrong, not the code
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/pg_modules/diffaug.py
pointer only (licence: MIT); the stored copy get_code serves, from postech-cvlab/pytorch-studiogan, is pointer only (licence: NOASSERTION) · get_code("011230b2b9b8fb6f")
How it ran

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

rand_saturation Ran
ran; our contract draft was wrong, not the code
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/pg_modules/diffaug.py
pointer only (licence: MIT); the stored copy get_code serves, from postech-cvlab/pytorch-studiogan, is pointer only (licence: NOASSERTION) · get_code("5b0d8787e670fc63")
How it ran

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

restore_from_path Ran
ran on a synthesized input
google-research/maskgit/maskgit/utils.py
code served (permissive licence) · get_code("95c51644bf3cb9ff")
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 flax
import tensorflow.compat.v1 as tf
import tempfile
import os

# Create a temporary directory and file for testing
temp_dir = tempfile.mkdtemp()
temp_path = os.path.join(temp_dir, "test_state.bin")

# Create a simple state object to serialize
simple_state = {"weights": [1.0, 2.0, 3.0], "bias": 0.5}

# Serialize the state using flax and write to file
serialized_bytes = flax.serialization.to_bytes(simple_state)
with tf.io.gfile.GFile(temp_path, 'wb') as f:
    f.write(serialized_bytes)

ARGS = {
    "path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, tensorflow — 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
schedule Ran
ran on a synthesized input
google-research/maskgit/maskgit/libml/mask_schedule.py
code served (permissive licence) · get_code("877afab065f859ba")
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 ArrayImpl, ndim 0, dtype family float, 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 math
import jax
import jax.numpy as jnp

ARGS = {
    'ratio': 0.5,
    'total_unknown': 256,
    'method': 'cosine'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 0, dtype family float, 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
squared_euclidean_distance Ran
ran on a synthesized input
google-research/maskgit/maskgit/libml/losses.py
code served (permissive licence) · get_code("d80134d1097de9c4")
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 ArrayImpl, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp

# Set up small test arrays
n, d, m = 2, 4, 3

# Create array `a` with shape (n, d) = (2, 4)
a = jnp.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=jnp.float32)

# Create array `b` with shape (m, d) = (3, 4)
b = jnp.array([
    [1.0, 1.0, 1.0, 1.0],
    [2.0, 2.0, 2.0, 2.0],
    [3.0, 3.0, 3.0, 3.0]
], dtype=jnp.float32)

# Pre-compute b2: b square transpose with shape (1, m) = (1, 3)
b2 = jnp.sum(b.T ** 2, axis=0, keepdims=True)

# precision can be None (default) or a jax precision spec
precision = None

ARGS = {
    "a": a,
    "b": b,
    "b2": b2,
    "precision": precision
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
stable_init Ran
ran on a synthesized input
Rayhane-mamah/Efficient-VDVAE/efficient_vdvae_jax/model/conv2d.py
code served (permissive licence) · get_code("d177a0713d0bea82")
How it ran

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

import jax
import jax.numpy as jnp
from jax import dtypes
from flax.linen.initializers import glorot_uniform, zeros

# Create a JAX random key
key = jax.random.PRNGKey(0)

# Define arguments for stable_init
ARGS = {
    "scale": 0.5,
    "dtype": jnp.float32
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
standard_normal_logprob Ran
ran; our contract draft was wrong, not the code
rtqichen/residual-flows/qualitative_samples.py
code served (permissive licence) · get_code("2dc23e3f121c6a38")
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 Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

# The function expects a tensor z with a pow method and supports element-wise operations
z = torch.randn(2, 4)

ARGS = {
    "z": z
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
standard_normal_sample Ran
ran; our contract draft was wrong, not the code
rtqichen/residual-flows/qualitative_samples.py
code served (permissive licence) · get_code("2168d015a2e457cb")
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 Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    "size": (2, 4)
}
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 Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tensorflow_style_avg_pooling Ran
ran on a synthesized input
google-research/maskgit/maskgit/nets/layers.py
code served (permissive licence) · get_code("38e696a22dc81a6f")
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 ArrayImpl, ndim 4, dtype family float, shape (2, 2, 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 jax
import jax.numpy as jnp

# Set seed for reproducibility
jax.config.update('jax_platform_name', 'cpu')

# Create a small input tensor: (batch=2, height=4, width=3, channels=1)
x = jnp.ones((2, 4, 3, 1), dtype=jnp.float32)

# Define window shape for 2D pooling: (height=2, width=2)
window_shape = (2, 2)

# Define strides to match window dimensions: (stride_h=2, stride_w=2)
strides = (2, 2)

# Define padding mode
padding = 'VALID'

ARGS = {
    'x': x,
    'window_shape': window_shape,
    'strides': strides,
    'padding': padding
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 4, dtype family float, shape (2, 2, 1, 1) — shape (2, 2, 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
truncated_normal Ran
ran on a synthesized input
google-research/maskgit/maskgit/nets/maskgit_transformer.py
code served (permissive licence) · get_code("0408240381821d2c")
How it ran

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

import jax
import jax.numpy as jnp

# Set up random key for JAX
key = jax.random.PRNGKey(0)

# Define ARGS dict with all parameters
ARGS = {
    "stddev": 0.5,
    "dtype": jnp.float32,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
uniform_init Ran
ran on a synthesized input
Rayhane-mamah/Efficient-VDVAE/efficient_vdvae_jax/model/conv2d.py
code served (permissive licence) · get_code("0f49a2b0642d1098")
How it ran

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

import jax
import jax.numpy as jnp
import jax.random as random
from jax import dtypes

# Set a seed for reproducibility
key = random.PRNGKey(0)

ARGS = {
    "minval": 0.0,
    "maxval": 1.0,
    "dtype": jnp.float32,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
unnormalize Ran
ran on a synthesized input
SHI-Labs/StyleNAT/dataset/dataset.py
code served (permissive licence) · get_code("43108d105300b7f5")
How it ran

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

torch.manual_seed(0)

# The function expects a tensor with either 3 or 4 dimensions
# Dimension 0 should have size 3 (for RGB channels)
# For 4D: (batch, channels, height, width)
# For 3D: (channels, height, width)

# Create a 4D test tensor (batch_size=2, channels=3, height=4, width=5)
image_4d = torch.randn(2, 3, 4, 5)

ARGS = {
    "image": image_4d
}
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 (2, 3, 4, 5) — shape (2, 3, 4, 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: none by the harness; any seed is in the setup block
unswin_window Ran
ran on a synthesized input
SHI-Labs/StyleNAT/src/analysis.py
code served (permissive licence) · get_code("001e240d5a8fc4dc")
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 3, dtype family float, shape (4, 8, 8) 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

torch.manual_seed(0)

# Analyze the function:
# - q0, q1, k0, k1: tensors that get concatenated on dim=1
# - hw: integer used for reshape and division
# - ws: integer (window size) used for reshape and division
# - nheads: integer (number of heads) used for reshape

# From the code:
# q = torch.concat([q0, q1], dim=1) -> q0 and q1 have shape with dim 1 to concat
# After concat on dim 1, q has shape that allows:
# q.reshape(hw // ws, hw // ws, nheads, ws, ws, -1)
# This means: (B_, nheads, N, C//nheads) where N = ws**2
# So after concat: (B_, nheads, ws*ws, C//nheads)
# q0 and q1 each have half of nheads dimension or are split some way

# Working backwards:
# Final shape before reshape: (B_, nheads, ws, ws, C//nheads) after concat
# Actually looking at the reshape: (hw // ws, hw // ws, nheads, ws, ws, -1)
# That's 6 dimensions, so the input before reshape must have been flattened

# Let's trace: concat on dim=1 means:
# q0: (B_, nheads//2, ws*ws, C//nheads) 
# q1: (B_, nheads//2, ws*ws, C//nheads)
# After concat on dim=1: (B_, nheads, ws*ws, C//nheads)

# Actually, let me reconsider - the docstring says attention returns [B_, nheads, N, C//nheads]
# where N = ws**2 and B_ = B * H/ws * W/ws
# So this function is meant to receive intermediate attention outputs and unswin them

# Let's use:
# hw = 8 (full height/width)
# ws = 4 (window size)
# nheads = 4
# So hw // ws = 2, meaning 2x2 windows

hw = 8
ws = 4
nheads = 4
head_dim = 3  # C // nheads

# B_ = (hw // ws) ** 2 = 4
B_ = (hw // ws) ** 2

# q0, q1 should concatenate on dim 1 to give (B_, nheads, ws*ws, head_dim)
# So each should be (B_, nheads//2, ws*ws, head_dim)
q0 = torch.randn(B_, nheads // 2, ws * ws, head_dim)
q1 = torch.randn(B_, nheads // 2, ws * ws, head_dim)
k0 = torch.randn(B_, nheads // 2, ws * ws, head_dim)
k1 = torch.randn(B_, nheads // 2, ws * ws, head_dim)

ARGS = {
    "q0": q0,
    "q1": q1,
    "k0": k0,
    "k1": k1,
    "hw": hw,
    "ws": ws,
    "nheads": nheads,
}
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 3, dtype family float, shape (4, 8, 8) — shape (4, 8, 8) 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
upfirdn2d_native Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SHI-Labs/StyleNAT/op/upfirdn2d.py
pointer only (licence: MIT); the stored copy get_code serves, from koushiksrivats/face_attribute_attack, is pointer only (licence: NONE) · get_code("fe99cfd294676edb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from koushiksrivats/face_attribute_attack, 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.

upsample Ran
ran on a synthesized input
google-research/maskgit/maskgit/nets/layers.py
code served (permissive licence) · get_code("5829218c5489c6b6")
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 ArrayImpl, ndim 4, dtype family float, shape (2, 8, 6, 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 jax
import jax.numpy as jnp

# Create a small input tensor with shape (n, h, w, c)
# Using distinct dimensions: batch=2, height=4, width=3, channels=5
x = jnp.ones((2, 4, 3, 5), dtype=jnp.float32)

# Create the ARGS dictionary mapping all parameters
ARGS = {
    'x': x,
    'factor': 2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 4, dtype family float, shape (2, 8, 6, 5) — shape (2, 8, 6, 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: none by the harness; any seed is in the setup block
window_reverse Ran
ran; our contract draft was wrong, not the code
SHI-Labs/StyleNAT/models/generator.py
code served (permissive licence) · get_code("61bf152e6a42a184")
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 Tensor, ndim 4, dtype family float, shape (2, 8, 12, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Parameters for window_reverse
# windows: (num_windows*B, window_size, window_size, C)
# The function expects windows to be partitioned from an image of size (B, H, W, C)
# where the image is divided into non-overlapping windows of size window_size x window_size

B = 2  # batch size
H = 8  # image height
W = 12  # image width
window_size = 4  # window size
C = 3  # number of channels

# Calculate number of windows
num_windows_h = H // window_size  # 2
num_windows_w = W // window_size  # 3
num_windows = num_windows_h * num_windows_w  # 6

# windows shape: (num_windows*B, window_size, window_size, C)
# = (6*2, 4, 4, 3) = (12, 4, 4, 3)
windows = torch.randn(num_windows * B, window_size, window_size, C)

ARGS = {
    "windows": windows,
    "window_size": window_size,
    "H": H,
    "W": W,
}
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 Tensor, ndim 4, dtype family float, shape (2, 8, 12, 3) — shape (2, 8, 12, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
add_watermark Not yet run
unverified (harvested, no recorded run)
SHI-Labs/StyleNAT/src/inference.py
code served (permissive licence) · get_code("da365dda2e5af8e0")
How it ran

no invocation recorded.

ask_yes_no Not yet run
unverified (harvested, no recorded run)
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/dnnlib/util.py
code served (permissive licence) · get_code("9d31d2c4cd16bb2d")
How it ran

no invocation recorded.

calculate_activation_statistics Not yet run
unverified (harvested, no recorded run)
SHI-Labs/StyleNAT/utils/fid_score.py
code served (permissive licence) · get_code("12b482fc759f87dd")
How it ran

no invocation recorded.

calculate_frechet_distance Not yet run
unverified (harvested, no recorded run)
SHI-Labs/StyleNAT/utils/fid_score.py
code served (permissive licence) · get_code("0def50a351111624")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

compute_is Not yet run
unverified (harvested, no recorded run)
Zhendong-Wang/Diffusion-GAN/diffusion-projected-gan/metrics/inception_score.py
pointer only (licence: MIT); the stored copy get_code serves, from hse1032/Adversarial-Generation-of-Hierarchical-Gaussians-for-3D-Generative-Model, is pointer only (licence: NONE) · get_code("fc49fa553c005268")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from hse1032/Adversarial-Generation-of-Hierarchical-Gaussians-for-3D-Generative-Model, 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. No invocation recorded.

compute_representations Not yet run
unverified (harvested, no recorded run)
layer6ai-labs/dgm-eval/dgm_eval/__main__.py
code served (permissive licence) · get_code("2bbe398e90e76c2d")
How it ran

no invocation recorded.

get_activations Not yet run
unverified (harvested, no recorded run)
SHI-Labs/StyleNAT/utils/fid_score.py
code served (permissive licence) · get_code("c1f9693596855557")
How it ran

no invocation recorded.

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

Also present in other papers' code

Of 63 samples lifted from this paper's linked repositories, 63 carry a function identity and 0 do not. Of the 63 distinct functions with an identity, 48 are also present in other papers whose code we hold (47 with at least one paper dated earlier, 12 the same month, 32 later) and 15 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
window_reverse 227 other papers
91 dated earlier, 7 the same month, 120 later, 9 same year, order not determinable · 34 only as an assembly brick
1608.03983 (2016-08)
SGDR: Stochastic Gradient Descent with Warm Restarts
1711.10925 (2017-11)
Deep Image Prior
2003.13678 (2020-03)
Designing Network Design Spaces
and 224 more not named here
window_partition 223 other papers
85 dated earlier, 7 the same month, 122 later, 9 same year, order not determinable · 32 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1711.10925 (2017-11)
Deep Image Prior
2003.13678 (2020-03)
Designing Network Design Spaces
and 220 more not named here
count_parameters 180 other papers
91 dated earlier, 3 the same month, 82 later, 4 same year, order not determinable · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here
calculate_frechet_distance 74 other papers
39 dated earlier, 2 the same month, 32 later, 1 same year, order not determinable
1610.09585 (2016-10)
Conditional Image Synthesis With Auxiliary Classifier GANs
1706.08500 (2017-06)
GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium
1807.11458 (2018-07)
To learn image super-resolution, use a GAN to learn how to do image degradation first
and 71 more not named here
format_time 73 other papers
8 dated earlier, 1 the same month, 63 later, 1 undated
2004.00049 (2020-04)
In-Domain GAN Inversion for Real Image Editing
2004.11660 (2020-04)
Disentangled and Controllable Face Image Generation via 3D Imitative-Contrastive Learning
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
and 70 more not named here
ask_yes_no 69 other papers
8 dated earlier, 1 the same month, 59 later, 1 undated
2004.00049 (2020-04)
In-Domain GAN Inversion for Real Image Editing
2004.11660 (2020-04)
Disentangled and Controllable Face Image Generation via 3D Imitative-Contrastive Learning
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
and 66 more not named here
format_time_brief 68 other papers
6 dated earlier, 1 the same month, 60 later, 1 undated
2108.00946 (2021-08)
StyleGAN-NADA: CLIP-Guided Domain Adaptation of Image Generators
2202.00273 (2022-02)
StyleGAN-XL: Scaling StyleGAN to Large Diverse Datasets
2206.07695 (2022-06)
VoxGRAF: Fast 3D-Aware Image Synthesis with Sparse Voxel Grids
and 65 more not named here
chunk 40 other papers
16 dated earlier, 1 the same month, 23 later
2106.14490 (2021-06)
Making Images Real Again: A Comprehensive Survey on Deep Image Composition
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2204.11824 (2022-04)
Semi-Parametric Neural Image Synthesis
and 37 more not named here
make_kernel 40 other papers
35 dated earlier, 1 the same month, 4 later · 10 only as an assembly brick
1812.04948 (2018-12)
A Style-Based Generator Architecture for Generative Adversarial Networks
1912.04958 (2019-12)
Analyzing and Improving the Image Quality of StyleGAN
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
and 37 more not named here
file_ext 35 other papers
7 dated earlier, 1 the same month, 27 later
2106.07023 (2021-06)
Styleformer: Transformer based Generative Adversarial Networks with Style Vector
2111.02175 (2021-11)
Discriminator Synthesis: On reusing the other half of Generative Adversarial Networks
2111.13792 (2021-11)
LAFITE: Towards Language-Free Training for Text-to-Image Generation
and 32 more not named here
maybe_min 35 other papers
7 dated earlier, 1 the same month, 27 later
2106.07023 (2021-06)
Styleformer: Transformer based Generative Adversarial Networks with Style Vector
2111.02175 (2021-11)
Discriminator Synthesis: On reusing the other half of Generative Adversarial Networks
2111.13792 (2021-11)
LAFITE: Towards Language-Free Training for Text-to-Image Generation
and 32 more not named here
rand_brightness 17 other papers
12 dated earlier, 5 later
1912.04958 (2019-12)
Analyzing and Improving the Image Quality of StyleGAN
2006.10738 (2020-06)
Differentiable Augmentation for Data-Efficient GAN Training
2007.15646 (2020-07)
Rewriting a Deep Generative Model
and 14 more not named here
rand_saturation 16 other papers
11 dated earlier, 5 later
1912.04958 (2019-12)
Analyzing and Improving the Image Quality of StyleGAN
2006.10738 (2020-06)
Differentiable Augmentation for Data-Efficient GAN Training
2007.15646 (2020-07)
Rewriting a Deep Generative Model
and 13 more not named here
parse_comma_separated_list 13 other papers
7 dated earlier, 6 later
2112.07945 (2021-12)
Efficient Geometry-aware 3D Generative Adversarial Networks
2202.00273 (2022-02)
StyleGAN-XL: Scaling StyleGAN to Large Diverse Datasets
2206.07695 (2022-06)
VoxGRAF: Fast 3D-Aware Image Synthesis with Sparse Voxel Grids
and 10 more not named here
parse_vec2 11 other papers
6 dated earlier, 5 later
2106.12423 (2021-06)
Alias-Free Generative Adversarial Networks
2112.07945 (2021-12)
Efficient Geometry-aware 3D Generative Adversarial Networks
2202.00273 (2022-02)
StyleGAN-XL: Scaling StyleGAN to Large Diverse Datasets
and 8 more not named here
upfirdn2d_native 11 other papers
9 dated earlier, 1 the same month, 1 later · 5 only as an assembly brick
1812.04948 (2018-12)
A Style-Based Generator Architecture for Generative Adversarial Networks
2103.17249 (2021-03)
StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery
2104.06820 (2021-04)
Few-shot Image Generation via Cross-domain Correspondence
and 8 more not named here
DiffAugment 9 other papers
6 dated earlier, 3 later
2006.10738 (2020-06)
Differentiable Augmentation for Data-Efficient GAN Training
2104.03310 (2021-04)
Regularizing Generative Adversarial Networks under Limited Data
2111.01007 (2021-11)
Projected GANs Converge Faster
and 6 more not named here
parse_range 9 other papers
5 dated earlier, 4 later
2106.12423 (2021-06)
Alias-Free Generative Adversarial Networks
2202.00273 (2022-02)
StyleGAN-XL: Scaling StyleGAN to Large Diverse Datasets
2206.07695 (2022-06)
VoxGRAF: Fast 3D-Aware Image Synthesis with Sparse Voxel Grids
and 6 more not named here
make_transform 8 other papers
4 dated earlier, 4 later
2106.12423 (2021-06)
Alias-Free Generative Adversarial Networks
2112.07945 (2021-12)
Efficient Geometry-aware 3D Generative Adversarial Networks
2202.00273 (2022-02)
StyleGAN-XL: Scaling StyleGAN to Large Diverse Datasets
and 5 more not named here
parse_tuple 7 other papers
3 dated earlier, 4 later
2111.02175 (2021-11)
Discriminator Synthesis: On reusing the other half of Generative Adversarial Networks
2202.00273 (2022-02)
StyleGAN-XL: Scaling StyleGAN to Large Diverse Datasets
2206.07695 (2022-06)
VoxGRAF: Fast 3D-Aware Image Synthesis with Sparse Voxel Grids
and 4 more not named here

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

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

Abstract

We systematically study a wide variety of generative models spanning semanticallydiverse image datasets to understand and improve the feature extractors and metrics used to evaluate them. Using best practices in psychophysics, we measure human perception of image realism for generated samples by conducting the largest experiment evaluating generative models to date, and find that no existing metric strongly correlates with human evaluations. Comparing to 17 modern metrics for evaluating the overall performance, fidelity, diversity, rarity, and memorization of generative models, we find that the state-of-the-art perceptual realism of diffusion models as judged by humans is not reflected in commonly reported metrics such as FID. This discrepancy is not explained by diversity in generated samples, though one cause is over-reliance on Inception-V3. We address these flaws through a study of alternative self-supervised feature extractors, find that the semantic information encoded by individual networks strongly depends on their training procedure, and show that DINOv2-ViT-L/14 allows for much richer evaluation of generative models. Next, we investigate data memorization, and find that generative models do memorize training examples on simple, smaller datasets like CIFAR10, but not necessarily on more complex datasets like ImageNet. However, our experiments show that current metrics do not properly detect memorization: none in the literature is able to separate memorization from other phenomena such as underfitting or mode shrinkage. To facilitate further development of generative models and their evaluation we release all generated image datasets, human evaluation data, and a modular library to compute 17 common metrics for 9 different encoders at https://github.com/layer6ai-labs/dgm-eval.

For agents

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

get_harvested_code_for_paper("2306.04675")
get_code_for_paper("2306.04675")
have("2306.04675")

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

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

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

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

Connect an agent — have() is free.