From c34244162ddf46b0739a8f97112e37249745d9ad Mon Sep 17 00:00:00 2001 From: Alex G Rice Date: Sat, 2 Dec 2023 12:53:15 -0700 Subject: [PATCH] Remove unroll from naive mojo variant. - Was added accidentally in c35a8e --- mojo_impl/naive.mojo | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mojo_impl/naive.mojo b/mojo_impl/naive.mojo index f7d733a..a34ce18 100644 --- a/mojo_impl/naive.mojo +++ b/mojo_impl/naive.mojo @@ -20,19 +20,15 @@ fn envelope[dtype: DType, dims: Int](tensor: Tensor[dtype]) -> SIMD[dtype, 2 * d if dtype.is_floating_point(): let min_start = inf[dtype]() let max_start = neginf[dtype]() - @unroll for d in range(dims): result[d] = min_start - @unroll for d in range(dims, 2 * dims): result[d] = max_start else: # integral types let min_start = max_finite[dtype]() let max_start = min_finite[dtype]() - @unroll for d in range(dims): result[d] = min_start - @unroll for d in range(dims, 2 * dims): result[d] = max_start