MCPcopy Create free account
hub / github.com/Tencent/TNN / GetCodeType

Function GetCodeType

source/tnn/utils/naive_compute.cc:825–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823}
824
825inline CodeType GetCodeType(const int number) {
826 ASSERT(number > 0 && number < 4);
827
828 switch (number) {
829 case 1: {
830 return PriorBoxParameter_CodeType_CORNER;
831 }
832 case 2: {
833 return PriorBoxParameter_CodeType_CENTER_SIZE;
834 }
835 default: {
836 return PriorBoxParameter_CodeType_CORNER_SIZE;
837 }
838 }
839}
840
841void DealOutput(Blob *output_blob, const int num_kept, const int num,
842 std::vector<std::map<int, std::vector<float>>> &all_conf_scores,

Callers 1

NaiveDetectionOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected