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

Method init

dnn/src/rocm/handle.cpp:114–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void HandleImpl::ConstScalars::init() {
115#if !MEGDNN_DISABLE_FLOAT16
116 f16[0].megdnn_x = 0;
117 f16[1].megdnn_x = 1;
118#endif
119 f32[0] = 0;
120 f32[1] = 1;
121 i32[0] = 0;
122 i32[1] = 1;
123}
124
125template <typename Opr>
126std::unique_ptr<Opr> HandleImpl::create_operator() {

Callers 1

HandleImplMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected