MLX
Loading...
Searching...
No Matches
reduce_init.h
Go to the documentation of this file.
1
// Copyright © 2023-2024 Apple Inc.
2
3
template
<
typename
T,
typename
Op>
4
[[kernel]]
void
init_reduce
(
5
device T* out [[buffer(0)]],
6
uint tid [[thread_position_in_grid]]) {
7
out[tid] = Op::init;
8
}
init_reduce
void init_reduce(device T *out, uint tid)
Definition
reduce_init.h:4
mlx
backend
metal
kernels
reduction
reduce_init.h
Generated by
1.13.2