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

Method one_device

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

Source from the content-addressed store, hash-verified

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; }
57 dt_int32* zero_device_i32() { return &m_const_scalars->i32[0]; }

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