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

Method flush_log

src/gopt/impl/framework.cpp:413–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413size_t OptState::flush_log(const char* title) {
414 if (m_owner_optimizer->verbosity() >= 2) {
415 if (m_log_msg.empty()) {
416 m_log_msg = mgb_cstr_log(" no var replacement logged");
417 }
418 mgb_log("%s%s", title, m_log_msg.c_str());
419 m_log_msg.clear();
420 }
421 auto ret = m_log_nr_item;
422 m_log_nr_item = 0;
423 return ret;
424}
425
426void OptState::call_with_opr(
427 OperatorNodeBase* opr, thin_function<void(void)> func,

Callers 1

applyMethod · 0.80

Calls 3

verbosityMethod · 0.80
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected