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

Method as_format

imperative/python/src/tensor.h:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 }
67 }
68 inline void as_format(std::string format) {
69 if (!format.empty()) {
70 m_data = imperative::apply(AsFormat(format), m_data)[0];
71 }
72 }
73 inline HostValue::ref_t numpy() { return data().numpy(); }
74 inline void reset(ValueRef value) {
75 m_data = value;

Callers 1

_as_formatMethod · 0.80

Calls 3

AsFormatClass · 0.85
applyFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected