Dump state when hitting ambiguous_autogradother_kernel. (#50246)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/50246
Test Plan: Imported from OSS
Reviewed By: bhosmer
Differential Revision: D25843205
Pulled By: ailzhang
fbshipit-source-id: 66916ae477a4ae97e1695227fc6af78c4f328ea3