Skip to content

Input tensor to ExpandDims is lost when ExpandDims is in first layer of the input model. #2265

Open
@ArmDude

Description

@ArmDude

I came across this issue while attempting to convert Meta's Wav2Letter model to .onnx format. From some preliminary investigation, it seems that in cases where a model has the ExpandDims operator in the first layer with a provided preset tensor as input, this tensor input gets lost and is instead converted to an input to the entire model with an "Unsqueeze" operator in the .onnx output to replace the dimension expansion operation. This means that the tensor data for that ExpandDims operation is lost and needs to be manually supplied as an input by extracting the values from the original TensorFlow model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn unexpected problem or unintended behaviorpending on user responseWaiting for more information or validation from user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions