MCPcopy 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

11namespace {
12template <typename T>
13double as_double(T& a) {
14 return static_cast<double>(a);
15}
16
17template <>
18double as_double(megdnn::dt_quint8& a) {

Callers 1

do_print_host_valFunction · 0.85

Calls 3

as_int32Method · 0.80
as_uint8Method · 0.45
as_int8Method · 0.45

Tested by

no test coverage detected