| 57 | } |
| 58 | |
| 59 | static 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 | |
| 78 | static TinyNNDevice device_from_fbs(ns(Device_enum_t) fbs_device) { |
| 79 | switch (fbs_device) { |
no outgoing calls
no test coverage detected