Commit 4ce76d0
committed
Update on "Make add.Scalar manual_cpp_binding"
Manually do add.Scalar binding, skipping dispatch when you call into it from C++. This doesn't help if you directly get to the kernel via JIT interpreter though.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Differential Revision: [D25594995](https://our.internmc.facebook.com/intern/diff/D25594995)
[ghstack-poisoned]136 files changed
Lines changed: 1419 additions & 3277 deletions
File tree
- .circleci
- verbatim-sources
- .github
- .jenkins/pytorch
- win-test-helpers
- android/test_app/app/src/main
- aten
- conda
- src
- ATen
- core
- boxing
- dispatch
- op_registration
- cuda
- detail
- detail
- native
- vulkan
- glsl
- ops
- test
- THC
- TH
- generic
- c10/core
- impl
- caffe2
- contrib/aten
- docs
- opt
- python
- onnx
- docker/caffe2/jenkins/common
- docs/caffe2
- test
- backward_compatibility
- cpp_extensions
- distributed
- mobile/op_deps
- type_hint_tests
- tools
- autograd
- code_analyzer
- codegen
- api
- selective_build
- jit
- templates
- setup_helpers
- torch
- csrc
- api
- include/torch
- src
- autograd
- distributed/c10d
- jit
- mobile
- passes
- runtime
- static
- utils
- cuda
- fx
- experimental
- jit
- multiprocessing
- nn
- modules
- quantized/modules
- testing/_internal
- distributed/rpc
- jit
- utils
- data
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
9762 | 9765 | | |
9763 | 9766 | | |
9764 | 9767 | | |
| 9768 | + | |
9765 | 9769 | | |
9766 | 9770 | | |
9767 | 9771 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 51 | | |
59 | 52 | | |
60 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments