MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / NewMatmulPrimitive

Function NewMatmulPrimitive

oneflow/user/kernels/conv_kernels.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30std::unique_ptr<ep::primitive::Matmul> NewMatmulPrimitive(DeviceType device_type,
31 DataType data_type, bool transpose_a,
32 bool transpose_b) {
33 const auto trans_a = GetBlasTransposeType(transpose_a);
34 const auto trans_b = GetBlasTransposeType(transpose_b);
35 return ep::primitive::NewPrimitive<ep::primitive::MatmulFactory>(device_type, data_type, trans_a,
36 trans_b);
37}
38
39template<typename Context>
40std::unique_ptr<ep::primitive::Matmul> NewChannelsFirstMatmulPrimitive(Context* ctx) {

Calls 1

GetBlasTransposeTypeFunction · 0.70

Tested by

no test coverage detected