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

Method Clamp

dali/operators/ssd/box_encoder_test.cc:970–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

968 const int coco_anchors_count_ = 8732;
969
970 inline float Clamp(float val) { return val > 1.f ? 1.f : (val < 0.f ? 0.f : val); }
971
972 // Creates SSD default boxes (anchors) for COCO dataset.
973 // Exact description can be found in https://arxiv.org/abs/1512.02325

Callers 1

CreateCocoAnchorsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected