Whitelist ATen/core sources and headers for Caffe2 (#26609)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26609
Previously, we were globbing all of ATen/core and excluding specific files.
However, this frequently resulted in new files being missed, and PyTorch
diffs triggering Caffe2 builds. Now, instead, we will list the ATen/core
files that are required for Caffe2.
Test Plan: Ran internal Caffe2Go unit test.
Reviewed By: smessmer
Differential Revision: D17504740
fbshipit-source-id: 5b9bf7a6e8fa7848b2dfd375246d32630ca40cd5