model = ct.convert(
traced_model,
- convert_to=None if quantize else "mlprogram", # convert will fail if weights are quantized, not sure why
+ convert_to="neuralnetwork",
inputs=[ct.TensorType(name="logmel_data", shape=input_shape)],
outputs=[ct.TensorType(name="output")],
compute_units=ct.ComputeUnit.ALL
model = ct.convert(
traced_model,
- convert_to=None if quantize else "mlprogram", # convert will fail if weights are quantized, not sure why
+ convert_to="neuralnetwork",
inputs=[
ct.TensorType(name="token_data", shape=tokens_shape, dtype=int),
ct.TensorType(name="audio_data", shape=audio_shape)