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

Method str

lite/example/cpp_example/npy.h:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107
108public:
109 inline std::string str() {
110 const size_t max_buflen = 16;
111 char buf[max_buflen];
112 std::sprintf(buf, "%c%c%u", c_endian, c_type, len);
113 return std::string(buf);
114 }
115
116 Typestring(const std::vector<float>&)
117 : c_endian{host_endian_char}, c_type{'f'}, len{sizeof(float)} {}

Callers 3

write_tupleFunction · 0.45
SaveArrayAsNumpyFunction · 0.45
LoadArrayFromNumpyFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected