megenginelite-sys 1.8.2

A safe megenginelite wrapper in Rust
Documentation
/**
 * \file dnn/src/rocm/indexing_one_hot/indexing_one_hot.cpp.hip
 *
 * MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
 *
 * Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 */
#include "hcc_detail/hcc_defs_prologue.h"
#include "./indexing_one_hot.h.hip"
#include "src/rocm/elemwise_helper.h.hip"

namespace megdnn {
namespace rocm {

#define cb(_dt) \
    typedef indexing_one_hot::OpGet<DTypeTrait<dtype::_dt>::ctype, dt_int32> \
            OpGet##_dt; \
    typedef indexing_one_hot::OpSet<DTypeTrait<dtype::_dt>::ctype, dt_int32> \
            OpSet##_dt; \
    INST_RUN_ELEMWISE(OpGet##_dt, void, 0); \
    INST_RUN_ELEMWISE(OpSet##_dt, void, 0);

    MEGDNN_FOREACH_DTYPE_NAME(cb)
    MEGDNN_FOREACH_PARAMETERIZED_DTYPE(cb)

#undef cb

} // namespace rocm
} // namespace megdnn


// vim: ft=cpp syntax=cpp.doxygen