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

Method update_from_implement

lite/src/tensor.cpp:257–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void Tensor::update_from_implement() {
258 LITE_ERROR_HANDLER_BEGIN
259 m_layout = m_tensor_impl->get_layout();
260 m_device_type = m_tensor_impl->get_device_type();
261 m_device_id = m_tensor_impl->get_device_id();
262 m_is_pinned_host = m_tensor_impl->is_pinned_host();
263 LITE_ERROR_HANDLER_END
264}
265
266void LiteAny::type_missmatch(size_t expect, size_t get) const {
267 LITE_THROW(ssprintf(

Callers 5

sliceMethod · 0.45
make_output_specMethod · 0.45
update_inputMethod · 0.45
get_io_tensorMethod · 0.45

Calls 4

get_layoutMethod · 0.45
get_device_typeMethod · 0.45
get_device_idMethod · 0.45
is_pinned_hostMethod · 0.45

Tested by

no test coverage detected