Fix named tensor build (#24940)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/24940

We're missing an include for named tensors in templates/TypeDefault.h.

Test Plan: - run ci [namedtensor ci]

Differential Revision: D16930709

Pulled By: zou3519

fbshipit-source-id: c15d631761a78d5e50fe265a3129239e72042a83
diff --git a/aten/src/ATen/templates/TypeDefault.h b/aten/src/ATen/templates/TypeDefault.h
index 59de1dc..faedcc6 100644
--- a/aten/src/ATen/templates/TypeDefault.h
+++ b/aten/src/ATen/templates/TypeDefault.h
@@ -9,6 +9,9 @@
 #include <c10/util/ArrayRef.h>
 #include <c10/util/intrusive_ptr.h>
 #include <torch/csrc/WindowsTorchApiMacro.h>
+#ifdef BUILD_NAMEDTENSOR
+#include <ATen/NamedTensorUtils.h>
+#endif
 
 namespace c10 {
 struct Storage;