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

Method TensorLayout

dnn/src/common/basic_types.cpp:189–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187TensorLayout::TensorLayout() = default;
188
189TensorLayout::TensorLayout(DType dtype_) : dtype{dtype_}, format{Format(dtype)} {}
190
191TensorLayout::TensorLayout(DType dtype_, Format format_)
192 : dtype{dtype_}, format{format_} {}

Callers

nothing calls this directly

Calls 2

FormatClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected