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

Function sign_imp

tensorflow/compiler/xla/tests/half_test.cc:70–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70half sign_imp(half value) {
71 const float x(std::move(value));
72 return half((x < .0) ? -1 : (x > .0));
73}
74
75half round_imp(half value) {
76 return half(std::round(static_cast<float>(std::move(value))));

Callers 1

half_test.ccFile · 0.85

Calls 1

halfClass · 0.50

Tested by

no test coverage detected