Skip to content
HALOWERK

Language Model Access

layout reshape contiguity groups

Return whether a supplied strided view can take a requested C-order shape without copying.

POST https://modell.halowerk.com/v1/layout-reshape-contiguity-groups

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
shapearrayYes
stridesarrayYes
new_shapearrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "shape": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 1000000
      },
      "maxItems": 6,
      "minItems": 1
    },
    "strides": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": -1000000,
        "maximum": 1000000
      },
      "maxItems": 6,
      "minItems": 1
    },
    "new_shape": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 1000000
      },
      "maxItems": 6,
      "minItems": 1
    }
  },
  "required": [
    "shape",
    "strides",
    "new_shape"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "shape": [
    2,
    3
  ],
  "strides": [
    3,
    1
  ],
  "new_shape": [
    3,
    2
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-19 UTC.

More endpoints in this hub

All endpoints in this hub โ†’