Guard Symbol and ShapeGuardPrinter behind HAS_SYMPY (#90704)
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>
Follow up to https://github.com/pytorch/pytorch/pull/90528
Fixes https://github.com/pytorch/pytorch/issues/90696
Pull Request resolved: https://github.com/pytorch/pytorch/pull/90704
Approved by: https://github.com/weiwangmeta, https://github.com/atalman, https://github.com/malfet