[ONNX] Set node.target
instead of node.name
as ONNX initializer name
#104670
Labels
module: onnx
Related to torch.onnx
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
getattr
nodes were called to retrieve same parameter.node.name
is not always the same asnode.target
. Previously this is left unnoticed. Uncovered here due to that '/' is not allowed innode.name
, but allowed innode.target
. This means we still get_
in the onnx model initializer names in the end, even if we set to/
here.My plan is to merge this PR with
_
to stay consistent, and follow up another PR to fix initializer name, and revert to/
there.Originally posted by @BowenBao in #104493 (comment)
The text was updated successfully, but these errors were encountered: