Skip to content

Commit 0e14656

Browse files
committed
Update on "[llm] Add arange() tensor maker API"
As titled. `arange()` taking a `sizes` argument to be able to take custom tensor sizes. Differential Revision: [D77184741](https://our.internmc.facebook.com/intern/diff/D77184741/) [ghstack-poisoned]
2 parents 7e48e3d + 190f1f6 commit 0e14656

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernels/portable/cpu/util/arange_util.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ void arange_out_impl(
3838
double end,
3939
double step,
4040
Tensor& out) {
41+
(void)ctx;
4142
Tensor::SizesType numel = compute_arange_out_size(start, end, step);
4243
ET_ARANGE_IMPL(ctx, start, numel, step, out, "arange.start_out");
4344
}
4445

4546
void arange_out_impl(KernelRuntimeContext& ctx, double end, Tensor& out) {
47+
(void)ctx;
4648
ET_ARANGE_IMPL(ctx, 0.0, end, 1.0, out, "arange.out");
4749
}
4850

0 commit comments

Comments
 (0)