# ONNX038: subgraph-variable-shadowing **Code:** `ONNX038` **Name:** `subgraph-variable-shadowing` **Severity:** error **Category:** spec **Target:** graph **Fixable:** No ## Message Subgraph value name shadows a name from an outer scope. ## Suggestion Rename the value in the subgraph to avoid shadowing. ## Details The ONNX spec requires that node output names and names of inputs and initializers of a subgraph are distinct from names visible in outer scopes. Variable shadowing is not allowed.