Disable TV if Z3 is not found. (#106399)
Fix: #106276
This PR disables translation validation when running _test/dynamo/test_dynamic_shapes.py_
if Z3 is not installed.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106399
Approved by: https://github.com/ezyang