Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    TypeError
Message:      Couldn't cast array of type
struct<W: struct<type: string>, W_out: struct<type: string>, C_in: struct<type: string>, C_out: struct<type: string, value: int64>, Kw: struct<type: string, value: int64>, Sw: struct<type: string, value: int64>, Dw: struct<type: string, value: int64>, pad: struct<type: string, value: int64>>
to
{'N': {'type': Value('string')}, 'H': {'type': Value('string'), 'parent': Value('string')}, 'W': {'type': Value('string'), 'parent': Value('string')}, 'H_out': {'type': Value('string'), 'parent': Value('string')}, 'W_out': {'type': Value('string'), 'parent': Value('string')}, 'C_in': {'type': Value('string')}, 'C_out': {'type': Value('string'), 'value': Value('int64')}, 'Kh': {'type': Value('string'), 'value': Value('int64')}, 'Kw': {'type': Value('string'), 'value': Value('int64')}, 'Sh': {'type': Value('string'), 'value': Value('int64')}, 'Sw': {'type': Value('string'), 'value': Value('int64')}, 'Dh': {'type': Value('string'), 'value': Value('int64')}, 'Dw': {'type': Value('string'), 'value': Value('int64')}, 'pad_top': {'type': Value('string'), 'value': Value('int64')}, 'pad_left': {'type': Value('string'), 'value': Value('int64')}}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 478, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2303, in cast_table_to_schema
                  cast_array_to_feature(
                  ~~~~~~~~~~~~~~~~~~~~~^
                      table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      feature,
                      ^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1852, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2149, in cast_array_to_feature
                  raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
              TypeError: Couldn't cast array of type
              struct<W: struct<type: string>, W_out: struct<type: string>, C_in: struct<type: string>, C_out: struct<type: string, value: int64>, Kw: struct<type: string, value: int64>, Sw: struct<type: string, value: int64>, Dw: struct<type: string, value: int64>, pad: struct<type: string, value: int64>>
              to
              {'N': {'type': Value('string')}, 'H': {'type': Value('string'), 'parent': Value('string')}, 'W': {'type': Value('string'), 'parent': Value('string')}, 'H_out': {'type': Value('string'), 'parent': Value('string')}, 'W_out': {'type': Value('string'), 'parent': Value('string')}, 'C_in': {'type': Value('string')}, 'C_out': {'type': Value('string'), 'value': Value('int64')}, 'Kh': {'type': Value('string'), 'value': Value('int64')}, 'Kw': {'type': Value('string'), 'value': Value('int64')}, 'Sh': {'type': Value('string'), 'value': Value('int64')}, 'Sw': {'type': Value('string'), 'value': Value('int64')}, 'Dh': {'type': Value('string'), 'value': Value('int64')}, 'Dw': {'type': Value('string'), 'value': Value('int64')}, 'pad_top': {'type': Value('string'), 'value': Value('int64')}, 'pad_left': {'type': Value('string'), 'value': Value('int64')}}

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

ARM Bench Trace

A benchmark trace for ARM (aarch64 / SVE) CPU kernel evaluation. It pairs operator definitions with concrete workloads and reference/baseline solutions, so that a candidate kernel can be checked for bit-exact correctness against a reference and timed against a baseline.

The current trace covers 2D convolution (conv2d) as extracted from the ncnn test suite (tests/ncnn/candidate/convolution.cpp).

Repository structure

definitions/   # operator specs: axes (const/var), input/output shapes, PyTorch reference
  conv/        #   38 conv2d definitions, one JSON per kernel shape
solutions/     # kernels implementing a definition
  ncnn/
    _harness/                 # C/C++ harness contract (conv2d.h / conv2d.cpp)
    baseline-ncnn-arm/conv2d/ # ncnn::Convolution_arm wrappers (the timing baseline)
    reference-scalar/conv2d/  # naive scalar 6-loop conv2d (ground-truth correctness)
workloads/     # concrete problem instances (var-axis values + scalar inputs)
  conv/        #   one JSONL per definition; each line is a runnable workload

Definitions (definitions/conv/*.json)

Each file describes one operator instantiation. Key fields:

  • name, op_type, description, tags
  • axes β€” each axis is either const (baked-in, e.g. Kh=3, C_in=64, C_out=128) or var (chosen per workload, e.g. N, H, W).
  • inputs / outputs β€” tensor shapes (symbolic over the axes) and dtypes.
  • constraints β€” derived-shape relations (e.g. output H/W from stride, pad, dilation).
  • reference β€” a self-contained PyTorch (torch.nn.functional.conv2d) snippet defining the ground-truth result.

The file name encodes the const axes, e.g. conv2d_kh3_kw3_sh1_sw1_dh1_dw1_c64_c128 = 3Γ—3 kernel, stride 1, dilation 1, 64β†’128 channels.

Workloads (workloads/conv/*.jsonl)

One JSONL file per definition; each line is a single workload instance:

{"axes": {"N": 1, "H": 14, "W": 14},
 "scalar_inputs": {"pad_top": 0, "pad_left": 0, "activation_type": 0, "with_bias": 0},
 "uuid": "H14_W14_padh0_padw0_b0",
 "tags": {"from": "tests/ncnn/candidate/convolution.cpp"}}

axes fills in the var axes of the definition; scalar_inputs provides the runtime scalar arguments.

Solutions (solutions/ncnn/...)

A solution is a JSON record pointing at a definition plus inlined source files:

  • definition, dataset, author, description
  • spec β€” language, target_hardware (e.g. graviton3, aarch64-sve), entry_point, dependencies, isa_features, compile_flags, link_flags
  • sources β€” list of {path, content} (the actual kernel.cpp)

Two solution families ship here:

  • baseline-ncnn-arm β€” wraps ncnn::Convolution_arm (SVE, from libncnn_arm_heavy.a); the same kernel.cpp is stamped across every definition with const params supplied by the definition. This is the performance baseline. Times create_pipeline + forward.
  • reference-scalar β€” a straight scalar 6-loop accumulator; slow but ground-truth correct, used as the correctness reference / Phase-1 smoke test.

The shared harness (solutions/ncnn/_harness/conv2d.{h,cpp}) declares the ncnn::convolution_kernel contract that every solution implements, and handles input padding before the kernel is invoked.

Intended use

Drive an ARM CPU kernel benchmark/agent loop:

  1. Load a definition + its workloads.
  2. Compile a candidate solution against the harness contract.
  3. Check bit-exact correctness vs. the PyTorch / scalar reference.
  4. Time the candidate against the baseline-ncnn-arm solution on Graviton3.

License

Released under the Apache-2.0 license. Kernel sources derive from / wrap ncnn (BSD-3-Clause); see ncnn's license for the underlying library terms.

Downloads last month
314