converter = tf.lite.TFLiteConverter.from_concrete_functions([concrete_funct])
converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.representative_dataset = dset
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
converter.inference_input_type = tf.uint8
converter.inference_output_type = tf.int8
tflite_model = converter.convert()