Skip to content

Implement aten::arange on Tvarant - #114

Open
samthakur587 wants to merge 1 commit into
mainfrom
feat/op-21-arange
Open

samthakur587 wants to merge 1 commit into
mainfrom
feat/op-21-arange

Conversation

@samthakur587

Copy link
Copy Markdown
Owner

Summary

  • Implements aten::arange and aten::arange.start_step for PrivateUse1 ([op] arange #21)
  • Adds arange_kernel on host (CPU sim) and OpenCL; fp32 uses the kernel, other dtypes use CPU reference + _copy_from
  • Adds tests/test_op_arange.py vs CPU reference

Closes #21

Test plan

  • CI green (lint + docs + Python 3.10–3.12)
  • pytest tests/test_op_arange.py -v

Made with Cursor

Implement arange and arange.start_step with fp32 host/OpenCL kernels and a
CPU-reference path for other dtypes; add pytest coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>

This branch has not been deployed

No deployments
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.

[op] arange

1 participant