Coremltools: Specify output tensor names for PyTorch converted model

Created on 21 Aug 2020  路  1Comment  路  Source: apple/coremltools

鉂換uestion

Hi,
I am exporting a model from PyTorch with multiple output tensors, but those tensors in the exported model have numerical meaningless names.
Any chance I can specify the output names just like it is done with the input name?

pytorch question

Most helpful comment

While we should be able to specify "output" in the convert function for a PyTorch model, and this has been requested a few times like in #775, you might want to look at the "utils" https://coremltools.readme.io/docs/mlmodel-utilities which allow renaming of the output.

>All comments

While we should be able to specify "output" in the convert function for a PyTorch model, and this has been requested a few times like in #775, you might want to look at the "utils" https://coremltools.readme.io/docs/mlmodel-utilities which allow renaming of the output.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

baaj2109 picture baaj2109  路  4Comments

ghost picture ghost  路  3Comments

tucan9389 picture tucan9389  路  4Comments

mushipand picture mushipand  路  5Comments

xternalz picture xternalz  路  3Comments