Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
70
half sign_imp(half value) {
71
const float x(std::move(value));
72
return half((x < .0) ? -1 : (x > .0));
73
}
74
75
half round_imp(half value) {
76
return half(std::round(static_cast<float>(std::move(value))));
Callers
1
half_test.cc
File · 0.85
Calls
1
half
Class · 0.50
Tested by
no test coverage detected