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

Method zero_device_h

dnn/src/cuda/handle.h:55–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 dt_float32* zero_device() { return &m_const_scalars->f32[0]; }
54 dt_float32* one_device() { return &m_const_scalars->f32[1]; }
55 __half* zero_device_h() { return &m_const_scalars->f16[0].cuda_x; }
56 __half* one_device_h() { return &m_const_scalars->f16[1].cuda_x; }
57 dt_int32* zero_device_i32() { return &m_const_scalars->i32[0]; }
58 dt_int32* one_device_i32() { return &m_const_scalars->i32[1]; }

Callers 4

execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected