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

Method make

dnn/src/common/tensor_format.cpp:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191TensorFormat DefaultTensorFormat::make() {
192 // use static storage so the object is accessible in global destructing
193 // phase
194 static std::aligned_storage_t<
195 sizeof(DefaultTensorFormat), alignof(DefaultTensorFormat)>
196 storage;
197 static DefaultTensorFormat* obj = default_tensor_format_obj =
198 new (&storage) DefaultTensorFormat{};
199 return impl_to_tensor_format(obj);
200}
201
202/* ===================== Image2DTensorFormatBase ===================== */
203

Callers

nothing calls this directly

Calls 4

vendor_typeMethod · 0.45
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected