Skip to content

Conversation

@akhilg-nv
Copy link
Collaborator

Currently all operations are implemented as free functions, giving consistency to the API. To improve the user experience, readability, and transfer from other frameworks, we are adding a subset of operations to also be available as tensor methods. Currently, we are including operations that don't modify the underlying data, instead changing attributes like the device, datatype, or view. These are frequently "chained" operations in frameworks like torch, improving the transfer experience and readability.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.10.

Benchmark suite Current: 7b3ec36 Previous: a6e0c35 Ratio
tests/performance/test_perf.py::test_perf_regression[linear_block-float16] 6473.147359455753 iter/sec (stddev: 0.00005763634404023076) 7569.409541561832 iter/sec (stddev: 0.000025183510453729994) 1.17

This comment was automatically generated by workflow using github-action-benchmark.

@akhilg-nv akhilg-nv merged commit 04f6cf4 into main Aug 12, 2025
1 of 3 checks passed
@akhilg-nv akhilg-nv deleted the dev-akhilg-tensor-methods branch August 12, 2025 00:30
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.

3 participants