[TVM Discuss] [Development/RFC] [RFC][BYOC] Data Calibration Flow

2020-07-01 Thread Yi-Hsiang (Sean) Lai via TVM Discuss
Thanks everyone for the feedback. As mentioned above, the focus of this RFC is for the calibration pass, which is an optional analysis pass that can be applied by users. It does not necessarily need to be bound with BYOC. Moreover, quantization is also not the focus of this RFC. We will open o

[TVM Discuss] [Development/RFC] [RFC][BYOC] Data Calibration Flow

2020-06-29 Thread Yi-Hsiang (Sean) Lai via TVM Discuss
Hi, for now, the `calib_data` will be sent in as an argument of `PassContext`, which is accessible by the BYOC pass triggered by `relay.build`. Users can use the calibration data to perform quantization. You can imagine that users can build a helper quantizer that takes in the calibration data

[TVM Discuss] [Development/RFC] [RFC][BYOC] Data Calibration Flow

2020-06-25 Thread Yi-Hsiang (Sean) Lai via TVM Discuss
## Motivation Although TVM provides quantization flow for pre-quantized models, we do find some developers would prefer to use their own quantization flow for their accelerators, since they may have specialized calibration and quantization flows other than TVM QNN. However, current BYOC flow