← ZL256 task inventory
scaffoldCore-1 previewrevision 2

Tensor View Slice

compute/tensor-view-slice
computecompiledinterpreterc

Public context

What an implementation receives

# Tensor View Slice Implement the normative tensor view slice behavior for the ZergLang compute domain. Preserve deterministic ordering, typed failures, ownership transfer, and exactly-once cleanup required by the cited clauses. Submit the complete source closure matching `interface.zli`. Public cases are examples, not an exhaustive specification. Do not use ambient I/O, time, random state, or undeclared capabilities.

Public interfaceZergLang
module benchmark_compute_tensor_view_slice;

public value Kernel {
    public compiled compute message run(type: Class<Self>,
        lhs: TensorView<Float64,1,RowMajor>,
        rhs: TensorView<Float64,1,RowMajor>)
        -> Tensor<Float64,1,RowMajor> effects { compute };
}

Public cases

1 inspectable case

publicpublic input + expected behavior
Input
{
  "fields": [
    {
      "name": "lhs",
      "value": {
        "items": [
          {
            "bits": "0x3ff0000000000000",
            "format": "binary64",
            "type": "float"
          },
          {
            "bits": "0x8000000000000000",
            "format": "binary64",
            "type": "float"
          },
          {
            "bits": "0x400c000000000000",
            "format": "binary64",
            "type": "float"
          },
          {
            "bits": "0x4020000000000000",
            "format": "binary64",
            "type": "float"
          }
        ],
        "type": "sequence"
      }
    },
    {
      "name": "rhs",
      "value": {
        "items": [
          {
            "bits": "0x4000000000000000",
            "format": "binary64",
            "type": "float"
          },
          {
            "bits": "0x4010000000000000",
            "format": "binary64",
            "type": "float"
          },
          {
            "bits": "0xbff8000000000000",
            "format": "binary64",
            "type": "float"
          },
          {
            "bits": "0x3fe0000000000000",
            "format": "binary64",
            "type": "float"
          }
        ],
        "type": "sequence"
      }
    },
    {
      "name": "layout",
      "value": {
        "type": "text",
        "value": "row-major"
      }
    },
    {
      "name": "shape",
      "value": {
        "items": [
          {
            "type": "integer",
            "value": "4"
          }
        ],
        "type": "sequence"
      }
    },
    {
      "name": "scenario",
      "value": {
        "type": "text",
        "value": "tensor-view-slice"
      }
    }
  ],
  "type": "record"
}
Expected
{
  "kind": "value",
  "value": {
    "fields": [
      {
        "name": "layout",
        "value": {
          "type": "text",
          "value": "row-major"
        }
      },
      {
        "name": "shape",
        "value": {
          "items": [
            {
              "type": "integer",
              "value": "4"
            }
          ],
          "type": "sequence"
        }
      },
      {
        "name": "bits",
        "value": {
          "items": [
            {
              "bits": "0x4008000000000000",
              "format": "binary64",
              "type": "float"
            },
            {
              "bits": "0x4010000000000000",
              "format": "binary64",
              "type": "float"
            },
            {
              "bits": "0x4000000000000000",
              "format": "binary64",
              "type": "float"
            },
            {
              "bits": "0x4021000000000000",
              "format": "binary64",
              "type": "float"
            }
          ],
          "type": "sequence"
        }
      }
    ],
    "type": "record"
  }
}

Held-out inputs and expectations are excluded from this projection. Their published outcomes are aggregate-only.

Code entry

ZergLang source policy

Active reference source withheld

This task participates in model synthesis. Publishing its canonical solution would invalidate future evaluations; the prompt, interface, and public cases above are the complete public authoring context.

Execution contract

compute

Selector
benchmark_compute_tensor_view_slice.Kernel.run
Executors
compute-scalar
Platforms
portable
Performance lane
not eligible

Normative authority

1 bound clauses

Official task history

Signed conformance observations

No official conformance run currently contains this task revision in its signed catalog.

Provenance

Where this task came from

[
  {
    "kind": "original",
    "license": "Apache-2.0",
    "source": "ZergLang Core-0/Core-1 normative specification"
  }
]