Port `any` kernel to structured kernels. (#60361)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60361
Tracking issue: #55070
This PR was openned so as to solve the CI failures in main when merging: #59371 #59372 #59373 #59937 #59938.
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D29265859
Pulled By: ezyang
fbshipit-source-id: 0cca0431569f38a168473b5cc572ced473799961