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

Method zero_device_h

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

Source from the content-addressed store, hash-verified

49 dt_float32* one_device() { return &m_const_scalars->f32[1]; }
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]; }

Callers 2

execMethod · 0.45
execMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected