Skip to content

How can I output every node's output shape when infer with onnx models with lots of if branches #25052

Open
@DamonsJ

Description

@DamonsJ

Describe the issue

I want to print every layers' output shape
but this model
https://github.com/snakers4/silero-vad/blob/master/src/silero_vad/data/silero_vad.onnx
has so many if branches

it's mean you can only print layers' output when you really infer this model

how can I do this?

To reproduce

input = torch.ones(1,512)
state = torch.ones(2,1,128)
sr = torch.tensor(16000, dtype=torch.int64)
sess = ort.InferenceSession("silero_vad.onnx")
outputs = sess.run(None, {"input": input.numpy(),
"state": state.numpy(),
"sr": sr.numpy()})

Urgency

No response

Platform

Mac

OS Version

any

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

any

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions