Skip to content

Add Xtensa HiFi-optimized CONCATENATION kernel - #4012

Open
rameshkunasi wants to merge 1 commit into
tensorflow:mainfrom
rameshkunasi:xtensa-concatenation
Open

rameshkunasi wants to merge 1 commit into
tensorflow:mainfrom
rameshkunasi:xtensa-concatenation

Conversation

@rameshkunasi

Copy link
Copy Markdown
Contributor

Adds an Xtensa NNLib-optimized CONCATENATION kernel implementation (split out and modernized from #3701):

  • Xtensa optimization (tensorflow/lite/micro/kernels/xtensa/concatenation.cc):
    • Optimizes int8, int16, float32, int32, and int64 evaluation on HIFI3, HIFI4, HIFI5, and HIFI_IQ using xa_nn_concat_8_8 with byte-scaled trailing dimensions, falling back to ConcatenationEvalReference otherwise.
  • Shared kernel refactoring (concatenation.h, concatenation_common.cc, concatenation.cc, BUILD, sources.inc):
    • Add inline constexpr int constants (kConcatenationMaxInputNum, kConcatenationOutputTensor) and ConcatenationOpData.
    • Export shared ConcatenationInitReference (with nullptr check before placement new), ConcatenationPrepareReference, and ConcatenationEvalReference.
  • Unit tests (concatenation_test.cc):
    • Add int32 and int64 concatenation tests (TwoInputsInt32, TwoInputsInt64TrailingAxis).

BUG=n/a

@rameshkunasi
rameshkunasi requested a review from a team as a code owner November 18, 2026 03:15
@rameshkunasi rameshkunasi self-assigned this Nov 18, 2026
@rameshkunasi rameshkunasi added the ci:full Triggers the comprehensive cross-platform test suite. label Nov 18, 2026
@rameshkunasi
rameshkunasi deployed to integration-test November 18, 2026 03:19 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
integration-test — 923808c8 Deployed Nov 18, 2026 by rameshkunasi via approval-gate #1401
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Triggers the comprehensive cross-platform test suite.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant