Skip to content

Commit d2a3b6e

Browse files
committed
Prepare templates
1 parent aeadbbd commit d2a3b6e

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

tools/autograd/templates/python_torch_functions_dispatch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ using at::TensorList;
2222
using at::IntArrayRef;
2323
using at::Generator;
2424
using at::Storage;
25+
using at::Layout;
2526

2627
${py_method_dispatch}
2728

tools/autograd/templates/python_variable_methods_dispatch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ using at::TensorList;
1919
using at::IntArrayRef;
2020
using at::Generator;
2121
using at::Storage;
22+
using at::Layout;
2223

2324
${py_method_dispatch}
2425

tools/autograd/templates/variable_factories.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
#include <initializer_list>
1717
#include <utility>
1818

19+
using at::Device;
20+
using at::ScalarType;
21+
using at::Layout;
22+
1923
#ifdef BUILD_NAMEDTENSOR
2024
using at::DimnameList;
2125
#endif

0 commit comments

Comments
 (0)