Add type checks in _intrinsics.modules.fused (#23361)
Summary:
recreated
Pull Request resolved: https://github.com/pytorch/pytorch/pull/23361
ghstack-source-id: 87142339
Reviewed By: zafartahirov
Differential Revision: D16455500
fbshipit-source-id: ab2c9d10c7c025ae77f5b80f28e6bd261620a5f7