This repository was archived by the owner on Aug 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +13
-6
lines changed Expand file tree Collapse file tree 7 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 12
12
#include < functorch/csrc/DynamicLayer.h>
13
13
#include < functorch/csrc/TensorWrapper.h>
14
14
#include < functorch/csrc/BatchingMetaprogramming.h>
15
- #include < functorch/csrc/VmapTransforms .h>
15
+ #include < functorch/csrc/LegacyVmapTransforms .h>
16
16
#include < functorch/csrc/BatchedFallback.h>
17
17
#include < functorch/csrc/PlumbingHelper.h>
18
18
#include < ATen/core/dispatch/Dispatcher.h>
Original file line number Diff line number Diff line change 5
5
// LICENSE file in the root directory of this source tree.
6
6
7
7
#include < functorch/csrc/BatchedFallback.h>
8
- #include < functorch/csrc/VmapTransforms .h>
8
+ #include < functorch/csrc/LegacyVmapTransforms .h>
9
9
#include < functorch/csrc/Constants.h>
10
10
#include < functorch/csrc/TensorWrapper.h>
11
11
#include < functorch/csrc/DynamicLayer.h>
Original file line number Diff line number Diff line change 12
12
#include < functorch/csrc/DynamicLayer.h>
13
13
#include < functorch/csrc/TensorWrapper.h>
14
14
#include < functorch/csrc/BatchingMetaprogramming.h>
15
- #include < functorch/csrc/VmapTransforms .h>
15
+ #include < functorch/csrc/LegacyVmapTransforms .h>
16
16
#include < functorch/csrc/BatchedFallback.h>
17
17
#include < functorch/csrc/Constants.h>
18
18
#include < functorch/csrc/BatchRulesHelper.h>
@@ -23,6 +23,10 @@ namespace functorch {
23
23
24
24
// NOTE: [What is a batching rule?]
25
25
//
26
+ // This files contains batching rules written with the legacy (now-deprecated)
27
+ // batching rule API.
28
+ // Please try to use the new-style batching rule API (see writing_batch_rules.md)
29
+ //
26
30
// A *batching rule* implements the logic of how to call an operator on inputs
27
31
// that have zero or more additional batch dimensions. When one does a vmap, the
28
32
// dimension(s) being vmap'ed over get recorded as batch dimensions.
Original file line number Diff line number Diff line change 4
4
// This source code is licensed under the BSD-style license found in the
5
5
// LICENSE file in the root directory of this source tree.
6
6
7
- #include < functorch/csrc/VmapTransforms .h>
7
+ #include < functorch/csrc/LegacyVmapTransforms .h>
8
8
#include < functorch/csrc/DynamicLayer.h>
9
9
10
10
#include < ATen/ATen.h>
Original file line number Diff line number Diff line change 12
12
namespace at {
13
13
namespace functorch {
14
14
15
+ // This files contains the legacy (now-deprecated) batching rule API.
16
+ // Please try to use the new-style batching rule API (see writing_batch_rules.md)
17
+
15
18
// This file contains abstractions used for transforming *logical* vmap arguments
16
19
// into *physical* arguments. (Keep reading for definitions of these terms).
17
20
Original file line number Diff line number Diff line change 6
6
7
7
#include < torch/library.h>
8
8
#include < ATen/ATen.h>
9
- #include < functorch/csrc/VmapTransforms .h>
9
+ #include < functorch/csrc/LegacyVmapTransforms .h>
10
10
#include < functorch/csrc/BatchedTensorImpl.h>
11
11
#include < functorch/csrc/PlumbingHelper.h>
12
12
#include < functorch/csrc/Constants.h>
Original file line number Diff line number Diff line change 11
11
#include < functorch/csrc/TensorWrapper.h>
12
12
#include < functorch/csrc/DynamicLayer.h>
13
13
#include < functorch/csrc/BatchedTensorImpl.h>
14
- #include < functorch/csrc/VmapTransforms .h>
14
+ #include < functorch/csrc/LegacyVmapTransforms .h>
15
15
#include < functorch/csrc/BatchedFallback.h>
16
16
#include < functorch/csrc/BatchRulesHelper.h>
17
17
#include < functorch/csrc/CompileCache.h>
You can’t perform that action at this time.
0 commit comments