MCPcopy Create free account
hub / github.com/MegEngine/MegCC / dnntensor_2_cctensor

Function dnntensor_2_cctensor

compiler/test/kernel/common/src/cc_proxy.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88Tensor dnntensor_2_cctensor(const megdnn::TensorND& tensor, const char* name) {
89 Tensor res;
90 res.ptr = tensor.raw_ptr();
91 res.dtype = dnndtype_2_ccdtype(tensor.layout.dtype);
92 res.layout = dnnlayout_2_cclayout(tensor.layout);
93 res.name = const_cast<char*>(name);
94 return res;
95}
96std::string to_string(Layout layout) {
97 std::stringstream ss;
98 ss << "[";

Callers 1

proxy_kernelFunction · 0.85

Calls 2

dnndtype_2_ccdtypeFunction · 0.85
dnnlayout_2_cclayoutFunction · 0.85

Tested by

no test coverage detected