Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ as_double
Function
as_double
src/plugin/impl/opr_io_dump.cpp:13–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
11
namespace {
12
template <typename T>
13
double as_double(T& a) {
14
return static_cast<double>(a);
15
}
16
17
template <>
18
double as_double(megdnn::dt_quint8& a) {
Callers
1
do_print_host_val
Function · 0.85
Calls
3
as_int32
Method · 0.80
as_uint8
Method · 0.45
as_int8
Method · 0.45
Tested by
no test coverage detected