[export] Reland "Fix graph signature data model to list of specs." (#111136)
Summary: reland D49876258
Test Plan: CI
Differential Revision: D50224384
Pull Request resolved: https://github.com/pytorch/pytorch/pull/111136
Approved by: https://github.com/angelayi