Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
187
TensorLayout::TensorLayout() = default;
188
189
TensorLayout::TensorLayout(DType dtype_) : dtype{dtype_}, format{Format(dtype)} {}
190
191
TensorLayout::TensorLayout(DType dtype_, Format format_)
192
: dtype{dtype_}, format{format_} {}
Callers
nothing calls this directly
Calls
2
Format
Class · 0.50
size
Method · 0.45
Tested by
no test coverage detected