MCPcopy Create free account
hub / github.com/MegEngine/MegCC / get_string

Function get_string

runtime/src/parse.h:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#define ns(x) FLATBUFFERS_WRAP_NAMESPACE(MegCC, x)
12
13static inline char* get_string(const char* in) {
14 if (!in)
15 return NULL;
16 int len = strlen(in) + 1;
17 char* ret = (char*)tinynn_malloc(len + 1);
18 strcpy(ret, in);
19 return ret;
20}
21
22TinyNNStatus parse_tensor(Tensor* tensor, ns(Tensor_table_t) fbs_tensor, int tensor_id);
23

Callers 4

parse_tensorFunction · 0.85
parse_weightFunction · 0.85
parse_modelFunction · 0.85
parse_oprFunction · 0.85

Calls 1

tinynn_mallocFunction · 0.85

Tested by

no test coverage detected