MCPcopy Create free account
hub / github.com/NVIDIA/DALI / WriteBoxToOutput

Function WriteBoxToOutput

dali/operators/ssd/box_encoder.cc:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86template <int ndim>
87void WriteBoxToOutput(float *out_box_data, const vec<ndim, float> &center,
88 const vec<ndim, float> &extent) {
89 for (int d = 0; d < ndim; d++) {
90 out_box_data[d] = center[d];
91 out_box_data[ndim + d] = extent[d];
92 }
93}
94
95void BoxEncoder<CPUBackend>::WriteAnchorsToOutput(float *out_boxes, int *out_labels) const {
96 if (offset_) {

Callers 2

WriteAnchorsToOutputMethod · 0.85
WriteMatchesToOutputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected