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

Method regenerate

imperative/src/impl/interpreter/interpreter_impl.cpp:772–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772void ChannelImpl::regenerate(TensorInfo* dest) {
773 if (dest->evict_type == EvictType::DROP) {
774 auto&& path = dest->producer;
775 m_apply_stack.push(
776 {ApplyOp{path->id, path->op, path->inputs, path->outputs}, 0, dest,
777 "dtr"});
778 if (!m_applying)
779 flush_apply_stack();
780 }
781}
782
783void ChannelImpl::do_apply_op(const ApplyOp& cmd, std::string reason) {
784 using namespace ranges;

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected