Include named_any.h in modules.h (#21437)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/19462.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21437
Differential Revision: D15684880
Pulled By: yf225
fbshipit-source-id: db23c7e4e0f62d22b0b6c18f15420c3bb66af366