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

Method get_memory_ptr

lite/src/tensor.cpp:178–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178void* Tensor::get_memory_ptr() const {
179 LITE_ERROR_HANDLER_BEGIN
180 LITE_ASSERT(m_layout.ndim != 0, "Tensor layout is not valid when get memory ptr.");
181 return m_tensor_impl->get_memory_ptr();
182 LITE_ERROR_HANDLER_END
183}
184
185void* Tensor::get_memory_ptr(const std::vector<size_t>& idx) const {
186 LITE_ERROR_HANDLER_BEGIN

Callers 15

parse_npyMethod · 0.45
device_inputFunction · 0.45
device_input_outputFunction · 0.45
pinned_host_inputFunction · 0.45
config_user_allocatorFunction · 0.45
output_data_infoFunction · 0.45
basic_load_from_pathFunction · 0.45
basic_load_from_memoryFunction · 0.45
async_forwardFunction · 0.45
set_input_callbackFunction · 0.45

Calls

no outgoing calls

Tested by 11

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
test_multi_threadFunction · 0.36
test_output_no_copyFunction · 0.36
test_input_no_copyFunction · 0.36
test_io_no_copy_axFunction · 0.36
TESTFunction · 0.36
compare_lite_tensorFunction · 0.36
get_input_dataFunction · 0.36
mgelite_larFunction · 0.36