Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/coremltools
/ FromFloat
Method
FromFloat
mlmodel/src/MILBlob/Fp8.cpp:167–172 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
165
}
166
167
Fp8E5M2 Fp8E5M2::FromFloat(float f)
168
{
169
Fp8E5M2 result;
170
result.SetFloat(f);
171
return result;
172
}
173
174
Fp8E4M3FN Fp8E4M3FN::FromFloat(float f)
175
{
Callers
nothing calls this directly
Calls
1
SetFloat
Method · 0.45
Tested by
no test coverage detected