fix gather regression by not materializing loop vars in the error mes… (#33108)
Summary:
…sage
Per title, fixes regression reported in https://github.com/pytorch/pytorch/issues/32425. cc nikitaved
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33108
Differential Revision: D19816116
Pulled By: ngimel
fbshipit-source-id: 9f4a84c8e4533873b71bb7bbf3a7915b05308845