Skip to content

Conversation

@auphelia
Copy link
Collaborator

@auphelia auphelia commented Dec 18, 2025

This PR introduces support for the Crop node in FINN, enabling efficient implementation of ONNX gather nodes. The Gather node allows gathering entries from the axis dimension indexed by indices and concatenates them into an output tensor. FINN translates this concept to a Crop node that assumes a (N)HWC data layout. Cropping is possible on the H and W dimensions, and for 2D tensors, it operates on the W dimension with H assumed as 1. The PR leverages SIMD parallelism on the channel dimension (temporal). For detailed implementation, refer to the HLS code at https://github.com/Xilinx/finn-hlslib/blob/dev/crop.hpp.

@auphelia auphelia marked this pull request as ready for review December 19, 2025 13:58
@auphelia auphelia merged commit 46bbe99 into dev Dec 19, 2025
6 checks passed
@auphelia auphelia deleted the feature/crop branch December 19, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants