@@ -112,7 +112,8 @@ def convert(
112112 - Path to a ``.pt`` file
113113
114114 - Torch Exported Models:
115- - A `ExportedProgram <https://pytorch.org/docs/stable/export.html#torch.export.ExportedProgram> ` object with `EDGE` dialect
115+ - An `ExportedProgram <https://pytorch.org/docs/stable/export.html#torch.export.ExportedProgram>`_
116+ object with ``EDGE`` dialect.
116117
117118 source : str (optional)
118119
@@ -181,12 +182,13 @@ def convert(
181182 ``ImageType``, the converted Core ML model will have inputs with
182183 the same name.
183184 - If ``dtype`` is missing:
184- * For ``minimum_deployment_target <= ct.target.macOS12``, it defaults to float 32.
185- * For ``minimum_deployment_target >= ct.target.macOS13``, and with ``compute_precision`` in float 16 precision.
186- It defaults to float 16.
185+ * For ``minimum_deployment_target <= ct.target.macOS12``, it defaults to float 32.
186+ * For ``minimum_deployment_target >= ct.target.macOS13``, and with ``compute_precision`` in float 16 precision.
187+ It defaults to float 16.
187188
188189 - Torch Exported Models:
189- - The ``inputs`` parameter is not supported. ``inputs`` parameter is inferred from Torch ExportedProgram.
190+ - The ``inputs`` parameter is not supported. The ``inputs`` parameter is
191+ inferred from the Torch `ExportedProgram <https://pytorch.org/docs/stable/export.html#torch.export.ExportedProgram>`_.
190192
191193 outputs : list of ``TensorType`` or ``ImageType`` (optional)
192194
@@ -230,20 +232,19 @@ def convert(
230232 If ``dtype`` not specified, the outputs inferred of type float 32
231233 defaults to float 16.
232234
233- * PyTorch:
234-
235- - TorchScript Models:
236- - If specified, the length of the list must match the number of
237- outputs returned by the PyTorch model.
238- - If ``name`` is specified, it is applied to the output names of the
239- converted Core ML model.
240- - For ``minimum_deployment_target >= ct.target.macOS13``, and with ``compute_precision`` in float 16 precision.
241- If ``dtype`` not specified, the outputs inferred of type float 32
242- defaults to float 16.
243-
244- - Torch Exported Models:
245- - The ``outputs`` parameter is not supported. ``outputs`` parameter is inferred from Torch ExportedProgram.
235+ * PyTorch: TorchScript Models
236+ - If specified, the length of the list must match the number of
237+ outputs returned by the PyTorch model.
238+ - If ``name`` is specified, it is applied to the output names of the
239+ converted Core ML model.
240+ - For ``minimum_deployment_target >= ct.target.macOS13``,
241+ and with ``compute_precision`` in float 16 precision.
242+ - If ``dtype`` not specified, the outputs inferred of type float 32
243+ defaults to float 16.
246244
245+ * PyTorch: Torch Exported Models:
246+ - The ``outputs`` parameter is not supported.
247+ The ``outputs`` parameter is inferred from Torch `ExportedProgram <https://pytorch.org/docs/stable/export.html#torch.export.ExportedProgram>`_.
247248
248249 classifier_config : ClassifierConfig class (optional)
249250 The configuration if the MLModel is intended to be a classifier.
0 commit comments