PTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN
PTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMNASL pseudocode
The complete ASL owner is shown directly below.
// PTO-UNIT: {"id":"PTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN","surface":"tile","classification":["model","legality","image-to-column"],"depends_on":["PTO-TILE-MODEL-LEGALITY-DTYPE-LAYOUT","PTO-TILE-MODEL-STATE-FEATURE-MAP-DESCRIPTORS"]}
readonly func TileImageToColumnOutputHeight( descriptor: TileFeatureMapDescriptor) => integerbegin let receptive_height: integer = descriptor.dilation_height * (descriptor.filter_height - 1) + 1; if descriptor.height + descriptor.pad_top + descriptor.pad_bottom < receptive_height then return 0; end; let padded_height: integer = descriptor.height + descriptor.pad_top + descriptor.pad_bottom; return ((padded_height - receptive_height) DIVRM descriptor.stride_height) + 1;end;
readonly func TileImageToColumnOutputWidth( descriptor: TileFeatureMapDescriptor) => integerbegin let receptive_width: integer = descriptor.dilation_width * (descriptor.filter_width - 1) + 1; if descriptor.width + descriptor.pad_left + descriptor.pad_right < receptive_width then return 0; end; let padded_width: integer = descriptor.width + descriptor.pad_left + descriptor.pad_right; return ((padded_width - receptive_width) DIVRM descriptor.stride_width) + 1;end;
readonly func TileImageToColumnSourceIndex( descriptor: TileFeatureMapDescriptor, batch: integer, depth: integer, channel_group: integer, input_row: integer, input_column: integer, channel_in_group: integer) => integerbegin return (((((batch * descriptor.depth + depth) * descriptor.channel_groups + channel_group) * descriptor.height + input_row) * descriptor.width + input_column) * descriptor.channels_per_group) + channel_in_group;end;
readonly func TileImageToColumnReferencedSourcesDefined( source: TileIndex, destination: TileIndex, position_m: integer {0..65535}, position_k: integer {0..65535}, output_height: integer, output_width: integer) => booleanbegin let descriptor = ReadTileFeatureMapDescriptor(source); let source_tile = _Tiles[[source]]; let destination_tile = _Tiles[[destination]]; let rows_per_batch: integer = descriptor.depth * output_height * output_width; let rows_per_depth: integer = output_height * output_width; let columns_per_group: integer = descriptor.filter_height * descriptor.filter_width * descriptor.channels_per_group; let columns_per_filter_row: integer = descriptor.filter_width * descriptor.channels_per_group;
for row = 0 to destination_tile.valid_rows - 1 looplimit 65536 do let logical_row = position_m + row; let batch = logical_row DIVRM rows_per_batch; let batch_remainder = logical_row MOD rows_per_batch; let depth = batch_remainder DIVRM rows_per_depth; let depth_remainder = batch_remainder MOD rows_per_depth; let output_row = depth_remainder DIVRM output_width; let output_column = depth_remainder MOD output_width; for column = 0 to destination_tile.valid_columns - 1 looplimit 65536 do let logical_column = position_k + column; let channel_group = logical_column DIVRM columns_per_group; let group_remainder = logical_column MOD columns_per_group; let filter_row = group_remainder DIVRM columns_per_filter_row; let filter_remainder = group_remainder MOD columns_per_filter_row; let filter_column = filter_remainder DIVRM descriptor.channels_per_group; let channel_in_group = filter_remainder MOD descriptor.channels_per_group; let logical_channel: integer = channel_group * descriptor.channels_per_group + channel_in_group; let padded_input_row: integer = output_row * descriptor.stride_height + filter_row * descriptor.dilation_height; let input_row = padded_input_row - descriptor.pad_top; let padded_input_column: integer = output_column * descriptor.stride_width + filter_column * descriptor.dilation_width; let input_column = padded_input_column - descriptor.pad_left; if logical_channel < descriptor.logical_channels && input_row >= 0 && input_row < descriptor.height && input_column >= 0 && input_column < descriptor.width then let source_index = TileImageToColumnSourceIndex( descriptor, batch, depth, channel_group, input_row, input_column, channel_in_group); if source_index >= TileLogicalElementCapacity( source_tile.capacity_bytes, source_tile.data_type) || !TileLogicalElementDefined(source_tile, source_index as PackedTileElementIndex) then return FALSE; end; end; end; end; return TRUE;end;
readonly func TileOperandsLegal_TIMG2COL( destination: TileIndex, source: TileIndex, position_m: integer {0..65535}, position_k: integer {0..65535}) => booleanbegin if !TileDescriptorLegal(destination) || !TileDescriptorLegal(source) || !TileFeatureMapDescriptorStructurallyValid(source) then return FALSE; end; let destination_tile = _Tiles[[destination]]; let source_tile = _Tiles[[source]]; let descriptor = ReadTileFeatureMapDescriptor(source); if !TileCarrierOnlyDataTypeSupported(source_tile.data_type) || destination_tile.data_type != source_tile.data_type || destination_tile.layout != TileLayout_RowMajor || source_tile.layout != TileLayout_RowMajor || destination_tile.location != TileLocation_Matrix || source_tile.location != TileLocation_Matrix then return FALSE; end; let output_height = TileImageToColumnOutputHeight(descriptor); let output_width = TileImageToColumnOutputWidth(descriptor); if output_height <= 0 || output_width <= 0 then return FALSE; end; let logical_rows: integer = descriptor.batches * descriptor.depth * output_height * output_width; let logical_columns: integer = descriptor.channel_groups * descriptor.filter_height * descriptor.filter_width * descriptor.channels_per_group; if position_m + destination_tile.valid_rows > logical_rows || position_k + destination_tile.valid_columns > logical_columns then return FALSE; end; return TileImageToColumnReferencedSourcesDefined( source, destination, position_m, position_k, output_height, output_width);end;
Architecture behavior
This internal model unit is documented through its normative ASL/NDF owners and validation evidence; it has no reader-guide migration target.
NDF clauses
Bodies come from owning ASL. Dragging or buttons change only this page-session view order.
No NDF clause is attached to this unit.
Evidence index
8 matching entries
Executable evidence2
Image-to-column legality rejects a destination window beyond the logical matrix extent.
- surfaceTILE
- ownerPTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN
- categoryBOUNDARY
- case001
Show exact test source
Sources and references
- Complete stable ID
PTO-AVS-TILE-IMG2COL-RANGE-001- Path
tests/asl/tile/model/legality/image-to-column/tile-bound-img2col-range-001.asl- Kind / role
- boundary
- Requirements
- PTO-TIMG2COL-CONTRACT-001
- Pass condition
- The origin window is legal and an equal-width window starting at posK one is rejected.
- SHA-256
1b30112a80ccd84b14babbee561a09e110abfbaa84aa80f00f1eeed9dbccf99d
PTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN compiles as an independent normative unit
- surfaceTILE
- ownerPTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN
- categorySTATIC-INVARIANT
- case001
Show exact test source
Sources and references
- Complete stable ID
PTO-AVS-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN-STATIC-001- Path
tests/asl/tile/model/legality/image-to-column/tile-static-image-to-column-contract-001.asl- Kind / role
- static-invariant
- Pass condition
- the complete model and this unit's static invariant compile
- SHA-256
3673969fc7d593545fb79e641a57a5769240f7fd26cc4268a277c1343ba37761
Commit-scoped evidence5
spec/evidence/release-traceability-readiness.json · closed
PTO-EVIDENCE-RELEASE-TRACEABILITYSources and references
- Complete stable ID
PTO-EVIDENCE-RELEASE-TRACEABILITY- Path
spec/evidence/release-traceability-readiness.json- Kind / role
- ASL/NDF/documentation/AVS traceability
- SHA-256
c7327021d39dc67ac5564bc55073b3870a397d79ac8d9648284d56e33bc14a3e
spec/evidence/instruction-contract-closure.json · closed
PTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSURESources and references
- Complete stable ID
PTO-EVIDENCE-INSTRUCTION-CONTRACT-CLOSURE- Path
spec/evidence/instruction-contract-closure.json- Kind / role
- mnemonic and encoding contract closure
- SHA-256
3ef2bb62421c79dff8fa77a1c7983923b523244b8090812883ef81286ca8106a
spec/evidence/architecture-readiness.json · open
PTO-EVIDENCE-ARCHITECTURE-READINESSSources and references
- Complete stable ID
PTO-EVIDENCE-ARCHITECTURE-READINESS- Path
spec/evidence/architecture-readiness.json- Kind / role
- architecture maturity and blockers
- SHA-256
4b0b85199101251bea744e0f3591cc31906909dc80d5ab651c417a936036a004
spec/evidence/release-gate-readiness.json · ready-for-exact-head-verification
PTO-EVIDENCE-RELEASE-GATE-READINESSSources and references
- Complete stable ID
PTO-EVIDENCE-RELEASE-GATE-READINESS- Path
spec/evidence/release-gate-readiness.json- Kind / role
- exact-head gate readiness
- SHA-256
a0f4d2b6920c08981ea55fd8ef820708a40d4feb5402c5150e8e9ab532d84ce0
spec/release-manifest.json · draft
PTO-EVIDENCE-RELEASE-MANIFESTSources and references
- Complete stable ID
PTO-EVIDENCE-RELEASE-MANIFEST- Path
spec/release-manifest.json- Kind / role
- release content and encoding fingerprints
- SHA-256
1a64c109ed7a90351c41e2a418b3c0ebaf8ad975838986d2101385186b85c0d8
Decision history1
Re-encode B.IOT and B.IOS size and PE mode fields · accepted
- decision recordADR
- case0096
Decision record
Loading ADR-0096…
Sources and references
- Complete stable ID
ADR-0096- Path
docs/status/decisions/0096-b-iot-b-ios-sizecode-pemode.md- Affected units
- PTO-ARCH-DATA-TYPES-INTEGER, PTO-ARCH-FEATURES-TILE-ALLOCATION, PTO-ARCH-MEMORY-MODEL-GLOBAL-MEMORY-ACCESS, PTO-ARCH-PROFILE-RESET, PTO-ARCH-PROGRAMMING-MODEL-CORE-PE-TOPOLOGY, PTO-BLOCK-B-IOS, PTO-BLOCK-B-IOT, PTO-BLOCK-MODEL-DISPATCH-COMMANDS, PTO-BLOCK-MODEL-DISPATCH-CUBE-TMATMUL, PTO-BLOCK-MODEL-DISPATCH-DESTINATION-SHAPE, PTO-BLOCK-MODEL-DISPATCH-SHARED-CUBE-MATRIX, PTO-BLOCK-MODEL-DISPATCH-SHARED-TLSU, PTO-BLOCK-MODEL-OPERANDS-SHARED-BINDINGS, PTO-BLOCK-MODEL-OPERANDS-TILE-BINDINGS, PTO-BLOCK-MODEL-SCHEMA-PROFILE-ENCODING, PTO-BLOCK-MODEL-STATE-TYPES, PTO-TILE-MODEL-DEFINEDNESS-ELEMENTS, PTO-TILE-MODEL-DEFINEDNESS-PACKED-BOUNDARY, PTO-TILE-MODEL-EXECUTION-COMPARISON, PTO-TILE-MODEL-EXECUTION-COMPLEX, PTO-TILE-MODEL-EXECUTION-CUBE, PTO-TILE-MODEL-EXECUTION-ELEMENTWISE, PTO-TILE-MODEL-EXECUTION-EXPANSION, PTO-TILE-MODEL-EXECUTION-FUSED-MULTIPLY-ADD, PTO-TILE-MODEL-EXECUTION-GENERATION, PTO-TILE-MODEL-EXECUTION-IMAGE-TO-COLUMN, PTO-TILE-MODEL-EXECUTION-INDEXED-REARRANGEMENT, PTO-TILE-MODEL-EXECUTION-REARRANGEMENT, PTO-TILE-MODEL-EXECUTION-REDUCTION, PTO-TILE-MODEL-EXECUTION-SORTING, PTO-TILE-MODEL-EXECUTION-UNARY, PTO-TILE-MODEL-LEGALITY-ALLOCATION-CAPACITY, PTO-TILE-MODEL-LEGALITY-DESCRIPTOR-SHAPE, PTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN, PTO-TILE-MODEL-LEGALITY-INDEXED-REARRANGEMENT, PTO-TILE-MODEL-LEGALITY-MATRIX-INFO-DESCRIPTOR, PTO-TILE-MODEL-LEGALITY-MATRIX-POSTPROCESS, PTO-TILE-MODEL-LEGALITY-PE-MASK, PTO-TILE-MODEL-MEMORY-LOAD-STORE, PTO-TILE-MODEL-MEMORY-SHARED-MOVEMENT, PTO-TILE-MODEL-NUMERIC-FORMATS, PTO-TILE-MODEL-ORDERING-SORTING, PTO-TILE-MODEL-SHAPE-VALID-REGION, PTO-TILE-MODEL-STATE-ALLOCATION, PTO-TILE-MODEL-STATE-DESCRIPTORS, PTO-TILE-MODEL-STATE-FEATURE-MAP-DESCRIPTORS, PTO-TILE-MODEL-STATE-SHARED-REGISTERS, PTO-TILE-MODEL-STATE-TYPES, PTO-TILE-TLOAD
- Affected NDF
- PTO-ARCH-GM-ACCESS-001, PTO-B-IOS-SHARED-STATE-001, PTO-B-IOT-STREAM-001, PTO-CUBE-ACCUMULATOR-OUTPUT-001, PTO-TLOAD-CUBE-001, PTO-TLOAD-MEMORY-001
- SHA-256
c4b4fb7bc17878f710015207dc19ddaf22a0cf6989d185b16844714c71e23f62
Unit metadata
Open 4 generated metadata fields
Open generated traceability record
{
"classification": [
"model",
"legality",
"image-to-column"
],
"documentation": "docs/tile/model/legality/image-to-column.md",
"id": "PTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN",
"mnemonic": null,
"readiness_subjects": [
"ADR-0096"
],
"semantic_tests": [
"PTO-AVS-TILE-IMG2COL-RANGE-001"
],
"source": "asl/tile/model/legality/image-to-column.asl",
"surface": "tile",
"tests": [
"PTO-AVS-TILE-IMG2COL-RANGE-001",
"PTO-AVS-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN-STATIC-001"
]
}Sources and release identity
Show commit, paths, hashes, version, and canonical owners
- Release
0.58.5· Release candidate- Commit
7dc8b7e5b121d2b2499a2273bebff29e2cd86812- Original ASL
- asl/tile/model/legality/image-to-column.asl
- ASL SHA-256
9cda20ef7963642319f78545326e70a2d812c385f3a78ac43b8cce657b330169- Generated documentation
- docs/tile/model/legality/image-to-column.md · embedded in this page
- Documentation SHA-256
e6fbf64d6cbfc8ec209176fa65294ee0a342a96cb1506f80a3a31da163cf2fd4
Exact owners
- ASL PTO-TILE-MODEL-LEGALITY-IMAGE-TO-COLUMN
asl/tile/model/legality/image-to-column.asl