[pt2][inductor] switch dinfo representation (#95302)
Summary:
bypass-github-export-checks
use `dinfo.name` instead of `repr(dinfo)`, as initial results have shown that `dinfo.total_memory` may unexpectedly fluctuate
Test Plan: sandcastle + CI
Differential Revision: D43503558
Pull Request resolved: https://github.com/pytorch/pytorch/pull/95302
Approved by: https://github.com/bertmaher