SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2206.00272 · NeurIPS · 2022

Vision GNN: An Image is Worth Graph of Nodes

Kai Han, Yunhe Wang, Enhua Wu, Yehui Tang, Jianyuan Guo

arXiv · PDF · Open in the Atlas

Code that ran

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

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2206.00272.json · badge: /api/ran/2206.00272.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
hustvl/ViG canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
huawei-noah/efficient-ai-backbones canonical (classifier label)
classifier basis: classifier_2025
0 ran · 3 no recorded run
gswycf/signgraph community
Papers with Code archive
14 ran · 5 no recorded run
lccol/vig-eo community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
mirzaim/VisionGNN community
Papers with Code archive
3 ran · 1 no recorded run
FunctionStatusWhere it lives
DenseDilated Ran
ran on a synthesized input · constructed an object; no result was computed
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("119c797c7f57d6d4")
How it ran

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

DenseDilatedKnnGraph Ran
ran on a synthesized input · constructed an object; no result was computed
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("b65d27ba607bc693")
How it ran

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

EdgeConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("246cabde6412ef6b")
How it ran

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

GraphConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("b560c318f9098a55")
How it ran

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

GraphSAGE Ran
ran on a synthesized input · constructed an object; no result was computed
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("dd631a63dafc592e")
How it ran

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

MRConv2d Ran
ran on a synthesized input · constructed an object; no result was computed
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("a2aa2f7e285a4594")
How it ran

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

SimplePatchifier Ran
ran on a synthesized input
mirzaim/VisionGNN/model.py
code served (permissive licence) · get_code("9dea5f82e4174cc6")
How it ran

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

class SimplePatchifier(nn.Module):

    def __init__(self, patch_size=16):
        super().__init__()
        self.patch_size = patch_size

    def forward(self, x):
        B, C, H, W = x.shape
        x = x.permute(0, 2, 3, 1).unfold(1, self.patch_size, self.patch_size).unfold(2, self.patch_size, self.patch_size).contiguous().view(B, -1, C, self.patch_size, self.patch_size)
        return x


INIT_ARGS = {
    'patch_size': 8
}

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

if __name__ == '__main__':
    model = SimplePatchifier(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Input shape: {ARGS['x'].shape}")
    print(f"Output shape: {output.shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 5, dtype family float, shape (2, 16, 3, 8, 8) — shape (2, 16, 3, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
TwoLayerNN Ran
ran on a synthesized input
mirzaim/VisionGNN/model.py
code served (permissive licence) · get_code("83ee8781c7b699e2")
How it ran

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

class TwoLayerNN(nn.Module):

    def __init__(self, in_features, hidden_features=None, out_features=None):
        super().__init__()
        out_features = out_features or in_features
        hidden_features = hidden_features or in_features
        self.layer = nn.Sequential(nn.Linear(in_features, hidden_features), nn.BatchNorm1d(hidden_features), nn.GELU(), nn.Linear(hidden_features, out_features))

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


INIT_ARGS = {
    'in_features': 4,
    'hidden_features': 8,
    'out_features': 4,
}

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

if __name__ == '__main__':
    model = TwoLayerNN(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ViGBlock Ran
ran on a synthesized input
mirzaim/VisionGNN/model.py
code served (permissive licence) · get_code("0baa10d91e583fcc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 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
import torch.nn as nn
import torch.nn.functional as F

class TwoLayerNN(nn.Module):

    def __init__(self, in_features, hidden_features=None, out_features=None):
        super().__init__()
        out_features = out_features or in_features
        hidden_features = hidden_features or in_features
        self.layer = nn.Sequential(nn.Linear(in_features, hidden_features), nn.BatchNorm1d(hidden_features), nn.GELU(), nn.Linear(hidden_features, out_features))

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

class ViGBlock(nn.Module):

    def __init__(self, in_features, num_edges=9, head_num=1):
        super().__init__()
        self.k = num_edges
        self.num_edges = num_edges
        self.in_layer1 = TwoLayerNN(in_features)
        self.out_layer1 = TwoLayerNN(in_features)
        self.droppath1 = nn.Identity()
        self.in_layer2 = TwoLayerNN(in_features, in_features * 4)
        self.out_layer2 = TwoLayerNN(in_features, in_features * 4)
        self.droppath2 = nn.Identity()
        self.multi_head_fc = nn.Conv1d(in_features * 2, in_features, 1, 1, groups=head_num)

    def forward(self, x):
        B, N, C = x.shape
        sim = x @ x.transpose(-1, -2)
        graph = sim.topk(self.k, dim=-1).indices
        shortcut = x
        x = self.in_layer1(x.view(B * N, -1)).view(B, N, -1)
        neibor_features = x[torch.arange(B).unsqueeze(-1).expand(-1, N).unsqueeze(-1), graph]
        x = torch.stack([x, (neibor_features - x.unsqueeze(-2)).amax(dim=-2)], dim=-1)
        x = self.multi_head_fc(x.view(B * N, -1, 1)).view(B, N, -1)
        x = self.droppath1(self.out_layer1(F.gelu(x).view(B * N, -1)).view(B, N, -1))
        x = x + shortcut
        x = self.droppath2(self.out_layer2(F.gelu(self.in_layer2(x.view(B * N, -1)))).view(B, N, -1)) + x
        return x

INIT_ARGS = {
    'in_features': 4,
    'num_edges': 3,
    'head_num': 1,
}

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

if __name__ == '__main__':
    model = ViGBlock(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: {ARGS['x'].shape}")
    assert output.shape == ARGS['x'].shape, f"Shape mismatch: {output.shape} vs {ARGS['x'].shape}"
    print("Success!")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
act_layer Ran
ran; our contract draft was wrong, not the code
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("9cb7add8f210b472")
How it ran

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

batched_index_select Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("996eec2334fe011e")
How it ran

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

compute_edge_index Ran
ran on a synthesized input
lccol/vig-eo/models/utils.py
code served (permissive licence) · get_code("a5df825822ba8636")
How it ran

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

# For is_batched=True case:
# x shape: (B, N, F) - batch, nodes, features
# y shape: (B, M, F) - batch, nodes, features
# k: number of neighbors

B = 2  # batch size
N = 3  # number of nodes in x
M = 4  # number of nodes in y
F = 5  # feature dimension
k = 2  # number of neighbors

x = torch.randn(B, N, F)
y = torch.randn(B, M, F)

ARGS = {
    'x': x,
    'y': y,
    'k': k,
    'distance': 'pointcloud',
    'is_batched': 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 2, dtype family int, shape (2, 12) — shape (2, 12) 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
compute_split_sizes Ran
ran on a synthesized input
lccol/vig-eo/run_training.py
code served (permissive licence) · get_code("ee2406844fe2831e")
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 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

torch.manual_seed(0)

# Analyze the function:
# - split: str - a string with comma-separated values, can be digits or floats
# - size: int - an integer representing total size
# The function parses the split string and computes proportions/sizes

ARGS = {
    "split": "0.7,0.2,0.1",
    "size": 100
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family 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
convert_neigh_list_to_edge_index Ran
ran on a synthesized input
lccol/vig-eo/models/utils.py
code served (permissive licence) · get_code("72e6fd8e9496b74f")
How it ran

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

# Case 1: batched neighbor list
# B=2 (batch size), N=4 (number of nodes), K=3 (number of neighbors)
nn_idx_batched = torch.randint(0, 4, (2, 4, 3))

# Case 2: non-batched neighbor list
# N=4 (number of nodes), K=3 (number of neighbors)
nn_idx_non_batched = torch.randint(0, 4, (4, 3))

ARGS = {
    "nn_idx": nn_idx_batched,
    "y_max": None,
    "is_batched": 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 2, dtype family int, shape (2, 24) — shape (2, 24) 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
dense_knn_matrix Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("524d82561975519a")
How it ran

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

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

import torch
import torch.nn as nn

torch.manual_seed(0)

def get_activation_layer(act: str, **kwargs):
    if act == 'relu':
        return nn.ReLU()
    elif act == 'gelu':
        return nn.GELU(**kwargs)
    elif act == 'sigmoid':
        return nn.Sigmoid()
    elif act == 'softmax':
        return nn.Softmax(**kwargs)
    elif act == 'leakyrelu':
        return nn.LeakyReLU(**kwargs)
    else:
        raise NotImplementedError(f'Activation layer not implemented yet {act}')

ARGS = {
    'act': 'relu'
}
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 ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU 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
norm_layer Ran
ran; our contract draft was wrong, not the code
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("09e6ddb17c0adf28")
How it ran

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

normalize_image Ran
ran on a synthesized input
lccol/vig-eo/run_training.py
code served (permissive licence) · get_code("6f6471b9561767b8")
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

torch.manual_seed(0)

# Construct the arguments for normalize_image
data = {
    'image': torch.randn(2, 4, 3, 3)  # batch=2, channels=4, height=3, width=3
}

mean = torch.tensor([0.5, 0.4, 0.3, 0.2])  # 4 channels
std = torch.tensor([0.2, 0.25, 0.15, 0.3])  # 4 channels

ARGS = {
    'data': data,
    'mean': mean,
    'std': std
}
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
pairwise_distance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("82aeae314890e7ed")
How it ran

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

parse_train_string Ran
ran on a synthesized input
lccol/vig-eo/run_training.py
code served (permissive licence) · get_code("680818c85f065e07")
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

def parse_train_string(entry: str) -> list:
    fields = entry.split('+')
    return fields

ARGS = {
    "entry": "layer1+layer2+layer3"
}
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
part_pairwise_distance Ran
ran; our contract draft was wrong, not the code
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("102d0e5b09e9b385")
How it ran

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

reshape_for_broadcast Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hustvl/ViG/classification/models/vig.py
code served (permissive licence) · get_code("20ff6d11dd593018")
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 (1, 4, 1, 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)

# Create freqs_cis tensor
# This is typically a complex tensor of shape (seq_len, head_dim)
# Let's make it shape (4, 4) - seq_len=4, head_dim=4
freqs_cis = torch.randn(4, 4, dtype=torch.complex64)

# Create x tensor
# This should be a multi-dimensional tensor (at least 3D based on the assertion)
# Typical shape for transformer: (batch, seq_len, num_heads, head_dim)
# Let's use (2, 4, 3, 4) - batch=2, seq_len=4, num_heads=3, head_dim=4
x = torch.randn(2, 4, 3, 4)

ARGS = {
    "freqs_cis": freqs_cis,
    "x": x,
}
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 (1, 4, 1, 4) — shape (1, 4, 1, 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
resize_pos_embed Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hustvl/ViG/classification/models/vig.py
code served (permissive licence) · get_code("212a5d16eef34d1d")
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 3, dtype family float, shape (1, 31, 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create position embedding tensor with shape [1, L, C]
# L = src_h * src_w + num_extra_tokens
# Let's use src_shape = (4, 3), num_extra_tokens = 1
# So L = 4 * 3 + 1 = 13
# C = 8 (embedding dimension)
src_h, src_w = 4, 3
num_extra_tokens = 1
C = 8
L = src_h * src_w + num_extra_tokens

pos_embed = torch.randn(1, L, C)

# Source shape (height, width of downsampled training image)
src_shape = (4, 3)

# Destination shape (different from source)
dst_shape = (6, 5)

# Mode for interpolation
mode = 'bicubic'

ARGS = {
    'pos_embed': pos_embed,
    'src_shape': src_shape,
    'dst_shape': dst_shape,
    'mode': mode,
    'num_extra_tokens': num_extra_tokens,
}
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 3, dtype family float, shape (1, 31, 8) — shape (1, 31, 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
xy_dense_knn_matrix Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("7fe31bf86f9187b8")
How it ran

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

xy_pairwise_distance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("160401504e7d0dbb")
How it ran

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

BasicConv Not yet run
unverified (harvested, no recorded run)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("e95e0284f030b79b")
How it ran

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

DeepGCN Not yet run
unverified (harvested, no recorded run)
huawei-noah/efficient-ai-backbones/vig_pytorch/vig.py
pointer only (licence: NONE) · get_code("28cfea9469d3520b")
How it ran

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

DyGraphConv2d Not yet run
unverified (harvested, no recorded run)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("85beb50061cdf64c")
How it ran

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

FFN Not yet run
unverified (harvested, no recorded run)
huawei-noah/efficient-ai-backbones/vig_pytorch/vig.py
pointer only (licence: NONE) · get_code("02f652b1a13d93ac")
How it ran

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

GINConv2d Not yet run
unverified (harvested, no recorded run)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("a0b00f43341b5121")
How it ran

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

Grapher Not yet run
unverified (harvested, no recorded run)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("5ab123da9ff9a2d5")
How it ran

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

Stem Not yet run
unverified (harvested, no recorded run)
huawei-noah/efficient-ai-backbones/vig_pytorch/vig.py
pointer only (licence: NONE) · get_code("52ba09bd92b104eb")
How it ran

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

VGNN Not yet run
unverified (harvested, no recorded run)
mirzaim/VisionGNN/model.py
code served (permissive licence) · get_code("1b638d9a262ff4f6")
How it ran

no invocation recorded.

get_2d_relative_pos_embed Not yet run
unverified (harvested, no recorded run)
gswycf/signgraph/modules/gcn_lib/torch_vertex.py
pointer only (licence: NONE) · get_code("5ae9597352254138")
How it ran

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

Also present in other papers' code

Of 34 samples lifted from this paper's linked repositories, 34 carry a function identity and 0 do not. Of the 34 distinct functions with an identity, 8 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 8 later) and 26 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
norm_layer
brick of this paper's assembly: helper
5 other papers
3 dated earlier, 2 later
2010.09891 (2020-10)
Robust Optimization as Data Augmentation for Large-scale Graphs
2106.07476 (2021-06)
Training Graph Neural Networks with 1000 Layers
2111.00064 (2021-11)
Node Feature Extraction by Self-Supervised Multi-scale Neighborhood Prediction
and 2 more not named here
get_2d_relative_pos_embed
brick of this paper's assembly: helper
4 other papers
4 later
2211.12941 (2022-11)
EurNet: Efficient Multi-Range Relational Modeling of Spatial Multi-Relational Data
2304.04269 (2023-04)
HumanSD: A Native Skeleton-Guided Diffusion Model for Human Image Generation
2310.16175 (2023-10)
G-CASCADE: Efficient Cascaded Graph Convolutional Decoding for 2D Medical Image Segmentation
and 1 more not named here
act_layer
brick of this paper's assembly: helper
3 other papers
3 later
2304.04269 (2023-04)
HumanSD: A Native Skeleton-Guided Diffusion Model for Human Image Generation
2308.01606 (2023-08)
Unsupervised Multiplex Graph Learning with Complementary and Consistent Information
2409.14538 (2024-09)
Towards Model-Agnostic Dataset Condensation by Heterogeneous Models
batched_index_select
brick of this paper's assembly: helper
3 other papers
3 later · 1 only as an assembly brick
2304.04269 (2023-04)
HumanSD: A Native Skeleton-Guided Diffusion Model for Human Image Generation
2409.14538 (2024-09)
Towards Model-Agnostic Dataset Condensation by Heterogeneous Models
2505.04121 (2025-05)
Vision Graph Prompting via Semantic Low-Rank Decomposition
pairwise_distance
brick of this paper's assembly: helper
3 other papers
3 later
2304.04269 (2023-04)
HumanSD: A Native Skeleton-Guided Diffusion Model for Human Image Generation
2310.16175 (2023-10)
G-CASCADE: Efficient Cascaded Graph Convolutional Decoding for 2D Medical Image Segmentation
2409.14538 (2024-09)
Towards Model-Agnostic Dataset Condensation by Heterogeneous Models
part_pairwise_distance
brick of this paper's assembly: helper
3 other papers
3 later
2304.04269 (2023-04)
HumanSD: A Native Skeleton-Guided Diffusion Model for Human Image Generation
2310.16175 (2023-10)
G-CASCADE: Efficient Cascaded Graph Convolutional Decoding for 2D Medical Image Segmentation
2409.14538 (2024-09)
Towards Model-Agnostic Dataset Condensation by Heterogeneous Models
xy_pairwise_distance
brick of this paper's assembly: helper
3 other papers
3 later
2304.04269 (2023-04)
HumanSD: A Native Skeleton-Guided Diffusion Model for Human Image Generation
2310.16175 (2023-10)
G-CASCADE: Efficient Cascaded Graph Convolutional Decoding for 2D Medical Image Segmentation
2409.14538 (2024-09)
Towards Model-Agnostic Dataset Condensation by Heterogeneous Models
reshape_for_broadcast 2 other papers
2 later
2409.10695 (2024-09)
Playground v3: Improving Text-to-Image Alignment with Deep-Fusion Large Language Models
2608.01298 (2026-08)
UDT: Reconciling U-Nets and Diffusion Transformers with Data-Adaptive Token Reduction

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

Network architecture plays a key role in the deep learning-based computer vision system. The widely-used convolutional neural network and transformer treat the image as a grid or sequence structure, which is not flexible to capture irregular and complex objects. In this paper, we propose to represent the image as a graph structure and introduce a new Vision GNN (ViG) architecture to extract graphlevel feature for visual tasks. We first split the image to a number of patches which are viewed as nodes, and construct a graph by connecting the nearest neighbors. Based on the graph representation of images, we build our ViG model to transform and exchange information among all the nodes. ViG consists of two basic modules: Grapher module with graph convolution for aggregating and updating graph information, and FFN module with two linear layers for node feature transformation. Both isotropic and pyramid architectures of ViG are built with different model sizes. Extensive experiments on image recognition and object detection tasks demonstrate the superiority of our ViG architecture. We hope this pioneering study of GNN on general visual tasks will provide useful inspiration and experience for future research.

For agents

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

get_harvested_code_for_paper("2206.00272")
get_code_for_paper("2206.00272")
have("2206.00272")

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

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

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

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

Connect an agent — have() is free.