MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / one_device_h

Method one_device_h

dnn/src/rocm/handle.h:52–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50#if !MEGDNN_DISABLE_FLOAT16
51 __half* zero_device_h() { return &m_const_scalars->f16[0].hip_x; }
52 __half* one_device_h() { return &m_const_scalars->f16[1].hip_x; }
53#endif
54 dt_int32* zero_device_i32() { return &m_const_scalars->i32[0]; }
55 dt_int32* one_device_i32() { return &m_const_scalars->i32[1]; }

Callers 2

execMethod · 0.45
execMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected