parse TernaryIf as right associative, fix #68221 (#68416)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/68221
Pull Request resolved: https://github.com/pytorch/pytorch/pull/68416
Reviewed By: gchanan
Differential Revision: D32819402
Pulled By: eellison
fbshipit-source-id: c32d9fcf49e24cc0df877b794dfcb8df7c7a6d78
(cherry picked from commit 8a5a1000859bb4bdbf84730b4b137a3ec171151f)