"library/vscode:/vscode.git/clone" did not exist on "3eecbfb6ec231cd8012faceb8b6fbc87199db60d"
elementwise_permute_fp16.cpp 917 Bytes
Newer Older
Po-Yen, Chen's avatar
Po-Yen, Chen committed
1
2
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2022, Advanced Micro Devices, Inc. All rights reserved.
3

Po-Yen, Chen's avatar
Po-Yen, Chen committed
4
#include "common.hpp"
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

using F16 = ck::half_t;

using ADataType = F16;
using BDataType = F16;

using PassThrough = ck::tensor_operation::element_wise::PassThrough;
using DeviceElementwisePermuteInstance =
    ck::tensor_operation::device::DeviceElementwise<ck::Tuple<ADataType>,
                                                    ck::Tuple<BDataType>,
                                                    PassThrough,
                                                    4,
                                                    8,
                                                    ck::Sequence<8>,
                                                    ck::Sequence<1>>;

Po-Yen, Chen's avatar
Po-Yen, Chen committed
21
#include "run_elementwise_permute_example.inc"
22

Po-Yen, Chen's avatar
Po-Yen, Chen committed
23
int main(int argc, char* argv[]) { return !run_elementwise_permute_example(argc, argv); }