SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1512.01274 · 2015

MXNet: A Flexible and Efficient Machine Learning Library for Heterogeneous Distributed Systems

arXiv · PDF · Open in the Atlas

Code that ran

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

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1512.01274.json · badge: /api/ran/1512.01274.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
apache/incubator-mxnet community (classifier label)
classifier basis not recorded on the link
9 ran · 3 no recorded run
ctuning/ck-mxnet community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
FunctionStatusWhere it lives
c2pyerror Ran
ran on a synthesized input
apache/incubator-mxnet/python/mxnet/base.py
code served (permissive licence) · get_code("ca037fa47522b39a")
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

# Analyze c2pyerror function:
# - Takes err_msg: str parameter
# - Splits by '\n', processes lines
# - Calls _find_error_type on first line
# - Looks for lines starting with 'Stack trace' and '  '
# - Joins and formats message

# Create a realistic C API error message with error type, stack trace, and message
err_msg = """RuntimeError: Invalid argument provided
Stack trace
  File "foo.cpp", line 42, in some_function()
  File "bar.cpp", line 13, in another_function()
This is an error message
Additional error details"""

ARGS = {
    "err_msg": err_msg
}
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
c_str Ran
ran on a synthesized input
apache/incubator-mxnet/python/mxnet/base.py
code served (permissive licence) · get_code("3be8df804c69aa82")
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 c_char_p. 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 ctypes

# The function takes a single parameter 'string' which is a Python string
# It converts it to a ctypes char pointer using UTF-8 encoding
# We need to provide a valid string as the argument

ARGS = {
    "string": "Hello, World"
}
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 c_char_p — a c_char_p 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
cpu Ran
ran on a synthesized input
apache/incubator-mxnet/python/mxnet/device.py
code served (permissive licence) · get_code("a73c6e46c328c419")
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 Device. 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.

ARGS = {
    'device_id': 0
}
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 Device — a Device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Device 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
cpu_pinned Ran
ran on a synthesized input
apache/incubator-mxnet/python/mxnet/device.py
code served (permissive licence) · get_code("3a25792e879b765e")
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 Device. 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 contextvars
import ctypes

# Define a minimal stand-in for _LIB that the empty_cache method might call
class MockLib:
    def MXStorageEmptyCache(self, dev_type, dev_id):
        return 0

_LIB = MockLib()

def check_call(ret):
    """Minimal check_call function"""
    pass

# Now define the arguments for cpu_pinned function
ARGS = {
    'device_id': 0
}
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 Device — a Device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Device 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
do_checkpoint Ran
ran on a synthesized input
apache/incubator-mxnet/python/mxnet/callback.py
code served (permissive licence) · get_code("df77b3eca6bd676b")
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 tempfile
import os

# Mock the save_checkpoint function that do_checkpoint calls internally
def save_checkpoint(prefix, epoch_no, sym, arg, aux):
    """Mock save_checkpoint function"""
    pass

# Create a temporary directory for checkpoint files
temp_dir = tempfile.mkdtemp()
checkpoint_prefix = os.path.join(temp_dir, "test_checkpoint")

# Define arguments for do_checkpoint function
ARGS = {
    "prefix": checkpoint_prefix,
    "period": 1
}
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 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
gpu Ran
ran on a synthesized input
apache/incubator-mxnet/python/mxnet/device.py
code served (permissive licence) · get_code("64f987e0fc32fc59")
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 Device. 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 contextvars
import ctypes

# Setup for the gpu function
# The gpu function takes one parameter: device_id

ARGS = {
    'device_id': 0
}
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 Device — a Device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Device 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
log_train_metric Ran
ran on a synthesized input
apache/incubator-mxnet/python/mxnet/callback.py
code served (permissive licence) · get_code("5bc9dd9627f0eb1c")
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 logging
import torch

# Set up logging to capture the info messages
logging.basicConfig(level=logging.INFO)

# Create a simple stand-in class for eval_metric
class SimpleMetric:
    def __init__(self):
        self.values = [("accuracy", 0.95), ("loss", 0.05)]
    
    def get_name_value(self):
        return self.values
    
    def reset(self):
        self.values = [("accuracy", 0.95), ("loss", 0.05)]

# Create a simple stand-in class for param
class ParamStandIn:
    def __init__(self):
        self.nbatch = 10
        self.epoch = 1
        self.eval_metric = SimpleMetric()

# Test the callback with different parameter values
ARGS = {
    "period": 10,
    "auto_reset": 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 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
record Ran
ran on a synthesized input
apache/incubator-mxnet/python/mxnet/autograd.py
code served (permissive licence) · get_code("b86308bc3bc53b49")
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 _RecordingStateScope. 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 ctypes

# Mock the MXNet library components since this is MXNet autograd code
class MockLib:
    def MXAutogradSetIsRecording(self, is_rec, prev_ptr):
        return 0
    
    def MXAutogradSetIsTraining(self, train_mode, prev_ptr):
        return 0
    
    def MXAutogradIsRecording(self, curr_ptr):
        return 0

_LIB = MockLib()

def check_call(ret):
    """Mock check_call function"""
    if ret != 0:
        raise Exception(f"MXNet call failed with code {ret}")

ARGS = {
    "train_mode": True
}
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 _RecordingStateScope — a _RecordingStateScope output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _RecordingStateScope 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
register_error Ran
ran on a synthesized input
apache/incubator-mxnet/python/mxnet/base.py
code served (permissive licence) · get_code("eb3b5530cd2c2b64")
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 type. 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

# Create a simple custom error class for testing
class CustomError(RuntimeError):
    pass

# Case 1: Test with a callable (class) passed as func_name, cls=None
# This tests the decorator pattern: @register_error class MyError(RuntimeError): pass
ARGS = {
    "func_name": CustomError,
    "cls": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
setup Ran
ran on a synthesized input
ctuning/ck-mxnet/package/lib-mxnet-0.11.0-cpu/custom.py
code served (permissive licence) · get_code("db5b5bf377370ae6")
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 numpy as np

torch.manual_seed(0)

# Create a minimal ck_kernel mock
class MockCKKernel:
    def __init__(self):
        pass

# Create host and target OS dicts with required keys
host_os_dict = {
    'bits': '64',
    'ck_name': 'linux',
    'ck_name2': 'ubuntu',
    'macos': 'no',
    'processor': 'x86_64',
    'env_var_start': '$',
    'env_var_extra1': '{',
    'env_var_stop': '',
    'env_var_extra2': '}'
}

target_os_dict = {
    'bits': '64',
    'ck_name': 'linux',
    'ck_name2': 'ubuntu',
    'macos': 'no',
    'processor': 'x86_64',
    'env_var_start': '$',
    'env_var_extra1': '{',
    'env_var_stop': '',
    'env_var_extra2': '}'
}

# Create customize dict
customize = {
    'install_env': {}
}

# Create deps dict
deps = {
    'dep1': {'version': '1.0'},
    'dep2': {'version': '2.0'}
}

# Create features dict
features = {
    'feature1': 'value1'
}

# Build the complete ARGS dict
ARGS = {
    'i': {
        'cfg': {
            'name': 'test_config',
            'version': '1.0'
        },
        'self_cfg': {
            'module_name': 'test_module'
        },
        'ck_kernel': MockCKKernel(),
        'host_os_uoa': 'linux',
        'host_os_uid': 'linux-uid-123',
        'host_os_dict': host_os_dict,
        'target_os_uoa': 'linux',
        'target_os_uid': 'linux-uid-123',
        'target_os_dict': target_os_dict,
        'target_device_id': 'device-001',
        'tags': ['tag1', 'tag2'],
        'env': {
            'PATH': '/usr/bin',
            'HOME': '/home/user'
        },
        'customize': customize,
        'deps': deps,
        'interactive': 'no',
        'path': '/tmp/entry_path',
        'install_path': '/tmp/install_path',
        'features': features
    }
}
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 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
setup Ran
ran on a synthesized input
ctuning/ck-mxnet/package/lib-mxnet-0.11.0-cuda80/custom.py
code served (permissive licence) · get_code("4bc536aaf0815e46")
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

# Build a minimal stand-in for ck_kernel
class MockCKKernel:
    def access(self, params):
        # The function calls ck.access with action='run', module_uoa='script', etc.
        # We need to return something that makes sense for a 'setup' function call
        # Return a simple dict or object indicating success
        return {'status': 'ok', 'result': None}

# Create the input dict with ck_kernel
ck_kernel = MockCKKernel()

i = {
    'ck_kernel': ck_kernel
}

ARGS = {
    'i': i
}
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
set_deferred_compute Not yet run
unverified (harvested, no recorded run)
apache/incubator-mxnet/python/mxnet/_deferred_compute.py
code served (permissive licence) · get_code("e065b66edb8371bb")
How it ran

no invocation recorded.

set_recording Not yet run
unverified (harvested, no recorded run)
apache/incubator-mxnet/python/mxnet/autograd.py
code served (permissive licence) · get_code("84a2b5addc51f455")
How it ran

no invocation recorded.

set_training Not yet run
unverified (harvested, no recorded run)
apache/incubator-mxnet/python/mxnet/autograd.py
code served (permissive licence) · get_code("565479a708f0d1c6")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 5 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 5 later) and 9 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
do_checkpoint 3 other papers
3 later
1904.12043 (2019-04)
Dynamic Mini-batch SGD for Elastic Distributed Training: Learning in the Limbo of Resources
1905.03960 (2019-05)
Priority-based Parameter Propagation for Distributed DNN Training
2110.06804 (2021-10)
A comprehensive review of Binary Neural Network
record 3 other papers
3 later
1904.12043 (2019-04)
Dynamic Mini-batch SGD for Elastic Distributed Training: Learning in the Limbo of Resources
1905.03960 (2019-05)
Priority-based Parameter Propagation for Distributed DNN Training
2110.06804 (2021-10)
A comprehensive review of Binary Neural Network
set_recording 3 other papers
3 later
1904.12043 (2019-04)
Dynamic Mini-batch SGD for Elastic Distributed Training: Learning in the Limbo of Resources
1905.03960 (2019-05)
Priority-based Parameter Propagation for Distributed DNN Training
2110.06804 (2021-10)
A comprehensive review of Binary Neural Network
set_training 3 other papers
3 later
1904.12043 (2019-04)
Dynamic Mini-batch SGD for Elastic Distributed Training: Learning in the Limbo of Resources
1905.03960 (2019-05)
Priority-based Parameter Propagation for Distributed DNN Training
2110.06804 (2021-10)
A comprehensive review of Binary Neural Network
log_train_metric 2 other papers
2 later
1904.12043 (2019-04)
Dynamic Mini-batch SGD for Elastic Distributed Training: Learning in the Limbo of Resources
1905.03960 (2019-05)
Priority-based Parameter Propagation for Distributed DNN Training

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

MXNet is a multi-language machine learning (ML) library to ease the development of ML algorithms, especially for deep neural networks. Embedded in the host language, it blends declarative symbolic expression with imperative tensor computation. It offers auto differentiation to derive gradients. MXNet is computation and memory efficient and runs on various heterogeneous systems, ranging from mobile devices to distributed GPU clusters. This paper describes both the API design and the system implementation of MXNet, and explains how embedding of both symbolic expression and tensor operation is handled in a unified fashion. Our preliminary experiments reveal promising results on large scale deep neural network applications using multiple GPU machines.

For agents

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

get_harvested_code_for_paper("1512.01274")
get_code_for_paper("1512.01274")
have("1512.01274")

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

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

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

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

Connect an agent — have() is free.