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

Method to_string

imperative/src/impl/transformations/grad.cpp:164–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164std::string GradSlot::to_string() const {
165 bool has_callback = bool(callback);
166 return ssprintf(
167 "GradSlot{grad=%s, has_callback=%d}", m_grad.to_string().c_str(),
168 (int)has_callback);
169}
170
171std::string GradFn::to_string() const {
172 return ssprintf("GradFn{dests=%s}", imperative::to_string(m_dests).c_str());

Callers 15

apply_on_physical_tensorFunction · 0.45
deduce_layoutFunction · 0.45
apply_on_physical_tensorFunction · 0.45
apply_on_physical_tensorFunction · 0.45
infer_output_attrsFunction · 0.45
get_deviceFunction · 0.45
concat_layout_deduceFunction · 0.45
stack_layout_deduceFunction · 0.45

Calls 2

to_stringFunction · 0.85
nameMethod · 0.45

Tested by

no test coverage detected