Format
======

enum Format {
  FORMAT\_NCHW = 0, // NCHW
  FORMAT\_NHWC, // NHWC
  FORMAT\_ND, // Nd Tensor
  FORMAT\_NC1HWC0, // NC1HWC0
  FORMAT\_FRACTAL\_Z, // FRACTAL\_Z
  FORMAT\_NC1C0HWPAD = 5,
  FORMAT\_NHWC1C0,
  FORMAT\_FSR\_NCHW,
  FORMAT\_FRACTAL\_DECONV,
  FORMAT\_C1HWNC0,
  FORMAT\_FRACTAL\_DECONV\_TRANSPOSE = 10,
  FORMAT\_FRACTAL\_DECONV\_SP\_STRIDE\_TRANS,
  FORMAT\_NC1HWC0\_C04, // NC1HWC0, C0 is 4
  FORMAT\_FRACTAL\_Z\_C04, // FRACZ, C0 is 4
  FORMAT\_CHWN,
  FORMAT\_FRACTAL\_DECONV\_SP\_STRIDE8\_TRANS = 15,
  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,
  FORMAT\_C1HWNCoC0 = 25,
  FORMAT\_MD,
  FORMAT\_NDHWC,
  FORMAT\_FRACTAL\_ZZ,
  FORMAT\_FRACTAL\_NZ,
  FORMAT\_NCDHW = 30,
  FORMAT\_DHWCN, // 3D filter input tensor format
  FORMAT\_NDC1HWC0,
  FORMAT\_FRACTAL\_Z\_3D,
  FORMAT\_CN,
  FORMAT\_NC = 35,
  FORMAT\_DHWNC,
  FORMAT\_FRACTAL\_Z\_3D\_TRANSPOSE, // 3D filter(transpose) input tensor format
  FORMAT\_FRACTAL\_ZN\_LSTM,
  FORMAT\_FRACTAL\_Z\_G,
  FORMAT\_RESERVED = 40,
  FORMAT\_ALL,
  FORMAT\_NULL,
  FORMAT\_ND\_RNN\_BIAS,
  FORMAT\_FRACTAL\_ZN\_RNN,
  FORMAT\_NYUV = 45,
  FORMAT\_NYUV\_A,
  FORMAT\_NCL,
  FORMAT\_FRACTAL\_Z\_WINO,
  FORMAT\_C1HWC0,
  // Add new formats definition here
  FORMAT\_END,
  // FORMAT\_MAX defines the max value of Format.
  // Any Format should not exceed the value of FORMAT\_MAX.
  // \*\* Attention \*\* : FORMAT\_MAX stands for the SPEC of enum Format and almost SHOULD NOT be used in code.
  // If you want to judge the range of Format, you can use FORMAT\_END.
  FORMAT\_MAX = 0xff
};

上述Format枚举值对应的序号取值，从0开始，依次递增。

IR构图不支持输入以下FORMAT：

FORMAT\_NC1HWC0
FORMAT\_FRACTAL\_Z
FORMAT\_NC1C0HWPAD
FORMAT\_NHWC1C0
FORMAT\_FRACTAL\_DECONV
FORMAT\_C1HWNC0
FORMAT\_FRACTAL\_DECONV\_TRANSPOSE
FORMAT\_FRACTAL\_DECONV\_SP\_STRIDE\_TRANS
FORMAT\_NC1HWC0\_C04
FORMAT\_FRACTAL\_Z\_C04
FORMAT\_FRACTAL\_DECONV\_SP\_STRIDE8\_TRANS
FORMAT\_NC1KHKWHWC0
FORMAT\_C1HWNCoC0
FORMAT\_FRACTAL\_ZZ
FORMAT\_FRACTAL\_NZ
FORMAT\_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\_NYUV
FORMAT\_NYUV\_A