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

Method set_layout

lite/src/tensor.cpp:217–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void Tensor::set_layout(const Layout& layout) {
218 LITE_ERROR_HANDLER_BEGIN
219 m_layout = layout;
220 m_tensor_impl->set_layout(layout);
221 LITE_ERROR_HANDLER_END
222}
223
224void Tensor::reset(void* prepared_data, size_t data_length_in_byte) {
225 LITE_ERROR_HANDLER_BEGIN

Callers 7

parse_npyMethod · 0.45
preprocess_imageFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
get_input_dataFunction · 0.45
LITE_set_tensor_layoutFunction · 0.45

Calls

no outgoing calls

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
get_input_dataFunction · 0.36