From cda45a7443a5f2cd14e4c48ef08733029a68f689 Mon Sep 17 00:00:00 2001 From: Gonzalo <456459+grzuy@users.noreply.github.com> Date: Tue, 5 Sep 2023 05:27:32 -0300 Subject: [PATCH] Let outside CustomOp2 implementations use binary_map/binary_map_vec (#741) --- candle-core/src/cpu_backend.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/candle-core/src/cpu_backend.rs b/candle-core/src/cpu_backend.rs index ed3dd3fc..c3ec8249 100644 --- a/candle-core/src/cpu_backend.rs +++ b/candle-core/src/cpu_backend.rs @@ -445,7 +445,7 @@ pub fn unary_map_vec U, FV: FnMut(&[T], &mut [U } // This function maps over two strided index sequences. -fn binary_map U>( +pub fn binary_map U>( lhs_l: &Layout, rhs_l: &Layout, lhs: &[T], @@ -525,7 +525,7 @@ fn binary_map U>( } // Similar to binary_map but with vectorized variants. -fn binary_map_vec T, FV: FnMut(&[T], &[T], &mut [T])>( +pub fn binary_map_vec T, FV: FnMut(&[T], &[T], &mut [T])>( lhs_l: &Layout, rhs_l: &Layout, lhs: &[T],