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

Method update

src/opr/impl/utility.cpp:156–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void Timestamp::update() {
157 mgb_assert(m_dest_off < m_dest->shape(0));
158 m_dest->ptr<float>()[m_dest_off] = m_first_event->elapsed_time_until(*m_event);
159}
160
161Timestamp::Timestamp(
162 VarNode* node, std::shared_ptr<HostTensorND> dest, size_t dest_off,

Callers 15

OnTestStartMethod · 0.45
dumpMethod · 0.45
CollectiveCommMethod · 0.45
applyMethod · 0.45
hashMethod · 0.45
TensorShapeHashKeyMethod · 0.45
JITFusionPassMethod · 0.45
update_argsMethod · 0.45
gen_func_opMethod · 0.45
codegen_cudaMethod · 0.45

Calls 2

elapsed_time_untilMethod · 0.80
shapeMethod · 0.45

Tested by 2

test_merge_oprFunction · 0.36
TESTFunction · 0.36