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

Method zero_device

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

Source from the content-addressed store, hash-verified

51 return m_cusolver_handle;
52 }
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; }

Callers 15

execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
try_transposeMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45
execMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected