提交 0d12ae80 编写于 作者: M Megvii Engine Team 提交者: Xu Xinran

feat(opr/standalone): import NMSKeep from MegSkull contrib

1. clang-format.
2. Use name "NMSKeepMGB" during serialization to avoid conflict with
   MegSkull contrib one.

GitOrigin-RevId: 627c60e4829f34b45a7587bb09770af761b90be9
上级 129fa70c
......@@ -25,7 +25,7 @@ from . import config, craniotome, dtype
from . import global_init as _global_init
from . import helper as _helper
from . import mgb as _detail
from . import opr, opr_param_defs, plugin
from . import opr, opr_extra, opr_param_defs, plugin
from .exc import MegBrainError
from .logconf import get_logger
from .mgb import (
......
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2019 Megvii Inc. All rights reserved.
......@@ -34,6 +34,11 @@ if(MGE_WITH_CUDA AND MGE_WITH_TRT)
endif()
if(MGE_WITH_CUDA)
file(GLOB_RECURSE SOURCES_ opr/impl/standalone/*.cu)
list(APPEND SOURCES ${SOURCES_})
endif()
add_library(megbrain OBJECT EXCLUDE_FROM_ALL ${SOURCES})
target_link_libraries(megbrain PUBLIC mgb_opr_param_defs)
target_include_directories(megbrain
......
......@@ -55,3 +55,8 @@ struct IndexDescMaskItem {
table IndexDescMaskDump {
items:[IndexDescMaskItem];
}
table NMSKeep {
iou_thresh:float;
max_output:uint;
}
......@@ -98,6 +98,7 @@ union OperatorParam {
param.IndexDescMaskDump = 66,
DType = 67,
param.Remap = 68,
param.NMSKeep = 69,
}
table Operator {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册