indexing.sereg.h 1.3 KB
Newer Older
1 2 3 4
/**
 * \file src/opr/impl/indexing.sereg.h
 * MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
 *
5
 * Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
6 7 8 9 10 11 12 13
 *
 * 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 "megbrain/opr/indexing.h"
#include "megbrain/opr/internal/indexing_helper_sereg.h"
M
Megvii Engine Team 已提交
14
#include "megbrain/serialization/sereg.h"
15 16 17 18 19 20 21 22 23 24 25 26 27

MGB_SEREG_GET_SUBTENSOR_OPR(IndexingMultiAxisVec);
MGB_SEREG_MODIFY_SUBTENSOR_OPR(IndexingSetMultiAxisVec);
MGB_SEREG_MODIFY_SUBTENSOR_OPR(IndexingIncrMultiAxisVec);
MGB_SEREG_GET_SUBTENSOR_OPR(MeshIndexing);
MGB_SEREG_GET_SUBTENSOR_OPR(BatchedMeshIndexing);
MGB_SEREG_MODIFY_SUBTENSOR_OPR(IncrMeshIndexing);
MGB_SEREG_MODIFY_SUBTENSOR_OPR(BatchedIncrMeshIndexing);
MGB_SEREG_MODIFY_SUBTENSOR_OPR(SetMeshIndexing);
MGB_SEREG_MODIFY_SUBTENSOR_OPR(BatchedSetMeshIndexing);

namespace mgb {
namespace opr {
28 29
MGB_SEREG_OPR(Diag, 1);
MGB_SEREG_OPR(DiagBackward, 2);
M
Megvii Engine Team 已提交
30 31 32 33 34 35
MGB_SEREG_OPR(IndexingOneHot, 2);
MGB_SEREG_OPR(IndexingRemap, 2);
MGB_SEREG_OPR(IndexingRemapBackward, 3);
MGB_SEREG_OPR(IndexingSetOneHot, 3);
}  // namespace opr
}  // namespace mgb
36 37

// vim: ft=cpp syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}