Move arange to its own file (#2438)

This commit is contained in:
Cheng
2025-07-30 13:05:51 +09:00
committed by GitHub
parent 254476718b
commit a0ae49d397
4 changed files with 57 additions and 52 deletions

View File

@@ -1,15 +0,0 @@
// Copyright © 2025 Apple Inc.
namespace mlx::core::cu {
template <typename T>
struct Arange {
const T start;
const T step;
__device__ T operator()(uint32_t i) const {
return start + i * step;
}
};
} // namespace mlx::core::cu