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

Function format_from_fbs

runtime/src/parse.c:59–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static TinyNNFormat format_from_fbs(ns(Format_enum_t) fbs_format) {
60 switch (fbs_format) {
61 case ns(Format_NCHW):
62 return TinyNN_NCHW;
63 case ns(Format_NHWC):
64 return TinyNN_NHWC;
65 case ns(Format_NCHW4):
66 return TinyNN_NCHW4;
67 case ns(Format_NCHW8):
68 return TinyNN_NCHW8;
69 case ns(Format_OIHW):
70 return TinyNN_OIHW;
71 default: {
72 LOG_ERROR("no support format from fbs.\n");
73 }
74 }
75 tinynn_trap();
76}
77
78static TinyNNDevice device_from_fbs(ns(Device_enum_t) fbs_device) {
79 switch (fbs_device) {

Callers 2

parse_tensorFunction · 0.85
parse_weightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected