This is for backward-compatibility. TODO(ycling): Remove the deprecated entry functions.
| 47 | // This is for backward-compatibility. |
| 48 | // TODO(ycling): Remove the deprecated entry functions. |
| 49 | inline void Export(const Model& model, bool allow_custom_ops, |
| 50 | bool quantize_weights, string* output_file_contents) { |
| 51 | ExportParams params; |
| 52 | params.allow_custom_ops = allow_custom_ops; |
| 53 | params.quantize_weights = |
| 54 | quantize_weights ? QuantizedBufferType::INT8 : QuantizedBufferType::NONE; |
| 55 | auto status = Export(model, output_file_contents, params); |
| 56 | if (!status.ok()) LOG(QFATAL) << status.error_message(); |
| 57 | } |
| 58 | |
| 59 | // This is for backward-compatibility. |
| 60 | // TODO(ycling): Remove the deprecated entry functions. |