I realized that `output_index_map` is completely redundant if we make `outputs` 
a dict instead of a list. Because `outputs` is always accessed via 
`output_index_map` like this, (here, outputs is a list)

```
outputs[output_index_map[var_name]]
```

instead it should be just `outputs[var_name]`.

@jjohnson-arm Does this make sense? If yes, feel free to remove 
`output_index_map` and make `outputs` a dict from node name to relay output 
values.





---
[Visit 
Topic](https://discuss.tvm.ai/t/pytorch-frontend-graph-input-names-can-change-using-loaded-torchscript/6055/15)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/7800ee6077c2f300c54198d560e9b2126d7c3bf3ba6c9691f0e1a0b66956a89d).

Reply via email to