Port `any` kernel to structured kernels. (#59372)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/59372
Tracking issue: #55070
Test Plan: Imported from OSS
Reviewed By: soulitzer
Differential Revision: D29104395
Pulled By: ezyang
fbshipit-source-id: 0cfde57c22ba88607945c98f28b18df7709becd0