Format
enum Format { FORMAT_NCHW = 0, // NCHW FORMAT_NHWC, // NHWC FORMAT_ND, // Nd Tensor FORMAT_NC1HWC0, // NC1HWC0 FORMAT_FRACTAL_Z, // FRACTAL_Z FORMAT_NC1C0HWPAD, FORMAT_NHWC1C0, FORMAT_FSR_NCHW, FORMAT_FRACTAL_DECONV, FORMAT_C1HWNC0, FORMAT_FRACTAL_DECONV_TRANSPOSE, FORMAT_FRACTAL_DECONV_SP_STRIDE_TRANS, FORMAT_NC1HWC0_C04, // NC1HWC0, C0 =4 FORMAT_FRACTAL_Z_C04, // FRACZ, C0 =4 FORMAT_CHWN, FORMAT_FRACTAL_DECONV_SP_STRIDE8_TRANS, FORMAT_HWCN, FORMAT_NC1KHKWHWC0, // KH,KW kernel h& kernel w maxpooling max output format FORMAT_BN_WEIGHT, FORMAT_FILTER_HWCK, // filter input tensor format FORMAT_HASHTABLE_LOOKUP_LOOKUPS = 20, FORMAT_HASHTABLE_LOOKUP_KEYS, FORMAT_HASHTABLE_LOOKUP_VALUE, FORMAT_HASHTABLE_LOOKUP_OUTPUT, FORMAT_HASHTABLE_LOOKUP_HITS = 24, FORMAT_C1HWNCoC0, FORMAT_MD, FORMAT_NDHWC, FORMAT_FRACTAL_ZZ, FORMAT_FRACTAL_NZ, FORMAT_NCDHW, FORMAT_DHWCN, // 3D filter input tensor format FORMAT_NDC1HWC0, FORMAT_FRACTAL_Z_3D, FORMAT_CN, FORMAT_NC, FORMAT_DHWNC, FORMAT_FRACTAL_Z_3D_TRANSPOSE, // 3D filter(transpose) input tensor format FORMAT_FRACTAL_ZN_LSTM, FORMAT_FRACTAL_Z_G, FORMAT_RESERVED, FORMAT_ALL, FORMAT_NULL, FORMAT_ND_RNN_BIAS, FORMAT_FRACTAL_ZN_RNN, // Add new formats definition here FORMAT_END, FORMAT_MAX = 0xff, FORMAT_YUV, FORMAT_YUV_A };
IR构图不支持输入以下FORMAT:
NC1HWC0 FRACTAL_Z NC1C0HWPAD NHWC1C0 FRACTAL_DECONV C1HWNC0 FRACTAL_DECONV_TRANSPOSE FRACTAL_DECONV_SP_STRIDE_TRANS NC1HWC0_C04 FRACTAL_Z_C04 FRACTAL_DECONV_SP_STRIDE8_TRANS NC1KHKWHWC0 C1HWNCoC0 FRACTAL_ZZ FRACTAL_NZ NDC1HWC0 FORMAT_FRACTAL_Z_3D FORMAT_FRACTAL_Z_3D_TRANSPOSE FORMAT_FRACTAL_ZN_LSTM FORMAT_FRACTAL_Z_G FORMAT_ND_RNN_BIAS FORMAT_FRACTAL_ZN_RNN FORMAT_YUV FORMAT_YUV_A
父主题: 数据类型