You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

indexing.sereg.h 1.4 kB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * \file src/opr/impl/indexing.sereg.h
  3. * MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
  4. *
  5. * Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
  6. *
  7. * Unless required by applicable law or agreed to in writing,
  8. * software distributed under the License is distributed on an
  9. * "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. */
  11. #include "megbrain/opr/indexing.h"
  12. #include "megbrain/opr/internal/indexing_helper_sereg.h"
  13. #include "megbrain/serialization/sereg.h"
  14. MGB_SEREG_GET_SUBTENSOR_OPR(IndexingMultiAxisVec);
  15. MGB_SEREG_MODIFY_SUBTENSOR_OPR(IndexingSetMultiAxisVec);
  16. MGB_SEREG_MODIFY_SUBTENSOR_OPR(IndexingIncrMultiAxisVec);
  17. MGB_SEREG_GET_SUBTENSOR_OPR(MeshIndexing);
  18. MGB_SEREG_GET_SUBTENSOR_OPR(BatchedMeshIndexing);
  19. MGB_SEREG_MODIFY_SUBTENSOR_OPR(IncrMeshIndexing);
  20. MGB_SEREG_MODIFY_SUBTENSOR_OPR(BatchedIncrMeshIndexing);
  21. MGB_SEREG_MODIFY_SUBTENSOR_OPR(SetMeshIndexing);
  22. MGB_SEREG_MODIFY_SUBTENSOR_OPR(BatchedSetMeshIndexing);
  23. namespace mgb {
  24. namespace opr {
  25. MGB_SEREG_OPR(Diag, 1);
  26. MGB_SEREG_OPR(DiagBackward, 2);
  27. MGB_SEREG_OPR(IndexingOneHot, 2);
  28. MGB_SEREG_OPR(IndexingRemap, 2);
  29. MGB_SEREG_OPR(IndexingRemapBackward, 3);
  30. MGB_SEREG_OPR(IndexingSetOneHot, 3);
  31. } // namespace opr
  32. } // namespace mgb
  33. // vim: ft=cpp syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}