Skip to content
HALOWERK

Language Model Access

layout depthtospace channel map

Return depth-to-space pixel rearrangement for a supplied CHW tensor in DCR or CRD mode.

POST https://modell.halowerk.com/v1/layout-depthtospace-channel-map

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
shapearrayYes
valuesarrayYes
blockintegerYes
modeSee schemaYes
Show full input schema
{
  "type": "object",
  "properties": {
    "shape": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 64
      },
      "maxItems": 3,
      "minItems": 3
    },
    "values": {
      "type": "array",
      "items": {
        "type": "number",
        "minimum": -1000000,
        "maximum": 1000000
      },
      "maxItems": 4096,
      "minItems": 1
    },
    "block": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8
    },
    "mode": {
      "enum": [
        "DCR",
        "CRD"
      ]
    }
  },
  "required": [
    "shape",
    "values",
    "block",
    "mode"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "shape": [
    4,
    1,
    1
  ],
  "values": [
    1,
    2,
    3,
    4
  ],
  "block": 2,
  "mode": "CRD"
}

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 โ†’