When a Pad op has multiple consumers, the fusion process will remove the Pad op without notifying the other consumers, which cause the other consumers to have inexistent input.
To avoid this issue, need to check the consumers of the Pad op before removing it.
When a Pad op has multiple consumers, the fusion process will remove the Pad op without notifying the other consumers, which cause the other consumers to have inexistent input. To avoid this issue, need to check the consumers of the Pad op before removing it.
Referer to: https://github.com/tsingmicro-toolchain/OnnxSlim/pull/29