MLX
Loading...
Searching...
No Matches
unary.h
Go to the documentation of this file.
1// Copyright © 2024 Apple Inc.
2
3constexpr std::string_view unary_kernels = R"(
4template [[host_name("v{0}")]] [[kernel]] void unary_v<{1}, {2}>(
5 device const {1}* in,
6 device {1}* out,
7 uint index [[thread_position_in_grid]]);
8
9template [[host_name("g{0}")]] [[kernel]] void unary_g<{1}, {2}>(
10 device const {1}* in,
11 device {1}* out,
12 device const int* in_shape,
13 device const size_t* in_strides,
14 device const int& ndim,
15 uint index [[thread_position_in_grid]]);
16)";
constexpr std::string_view unary_kernels
Definition unary.h:3