Skip to content

Conversation

Vope17
Copy link

@Vope17 Vope17 commented Jul 28, 2025

Implement circular access with start_position in
TensorBase::assign() for the INT8 data type.

Description

Optimize handling of circular data to avoid extra copy costs. For time-sequence data like
[1, 2, 3, 4, 5],
when new data (6) arrives, instead of shifting all elements to
[2, 3, 4, 5, 6],
we update start_position to 1 (value 2) represent the start index:
[6, 2, 3, 4, 5].
The storage method for new data uses circular indexing as shown below:
current_idx = (current_idx + 1) % WINDOW_SIZE;

Related

Testing

Tested on esp-idf-v5.3.1 with arch linux x86_64 on esp32s3


Checklist

Before submitting a Pull Request, please ensure the following:

  • 🚨 This PR does not introduce breaking changes.
  • All CI checks (GH Actions) pass.
  • Documentation is updated as needed.
  • Tests are updated or added as necessary.
  • Code is well-commented, especially in complex areas.
  • Git history is clean — commits are squashed to the minimum necessary.

Implement circular access with start_position in
TensorBase::assign() for the INT8 data type.
@github-actions github-actions bot changed the title test: add circular access in TensorBase::assign test: add circular access in TensorBase::assign (AIV-802) Jul 28, 2025
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.

1 participant