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

Function is_int4

dnn/src/fallback/relayout/opr_impl.cpp:120–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120bool is_int4(const TensorLayout& layout) {
121 return layout.dtype.enumv() == DTypeEnum::QuantizedS4 ||
122 layout.dtype.enumv() == DTypeEnum::Quantized4Asymm;
123}
124
125inline bool check_dtype_support_transparam(
126 bool trans, bool is_bit4, const relayout::TransposeParam& param) {

Callers 2

execMethod · 0.85
exec_after_preprocessMethod · 0.85

Calls 1

enumvMethod · 0.45

Tested by

no test coverage detected