MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / clamp

Function clamp

tensorflow/lite/experimental/ruy/size_util.h:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60inline int clamp(int x, int lo, int hi) {
61 if (x < lo) {
62 return lo;
63 } else if (x > hi) {
64 return hi;
65 } else {
66 return x;
67 }
68}
69
70} // namespace ruy
71

Callers 2

GetThreadCountFunction · 0.70
TrMulFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected