| 85 | |
| 86 | template <int ndim> |
| 87 | void WriteBoxToOutput(float *out_box_data, const vec<ndim, float> ¢er, |
| 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 | |
| 95 | void BoxEncoder<CPUBackend>::WriteAnchorsToOutput(float *out_boxes, int *out_labels) const { |
| 96 | if (offset_) { |
no outgoing calls
no test coverage detected