pytorch/caffe2
Antonio Kim 02c4d877b4 Codegen Non-Native IR Nodes (#76535)
Add codegen infrastructure to generate IR nodes for non-native ops.

The proposed change is to add a `non_native` key to the `{backend}_native_functions.yaml` file that contains schema definitions similar to what is found in `native_functions.yaml`. e.g.
```
non_native:
    ...
    - func: expand(Tensor input, int[] size, bool is_scalar_expand) -> Tensor
    ...
```
these definitions are parsed into a `LazyIrSchema` that can be used for generating IR nodes using `GenLazyIR`.

Fixes #74628

CC: @wconstab @desertfire @henrytwo

Pull Request resolved: https://github.com/pytorch/pytorch/pull/76535
Approved by: https://github.com/wconstab
2022-05-24 19:29:23 +00:00
..
contrib fix anon-struct usage that's a warning/error -Wnon-c-typedef-for-linkage (#137) 2022-05-02 18:14:30 +00:00
core Implement sym_sizes to create proper IR for sym ints representing tensor sizes (#77756) 2022-05-20 05:39:03 +00:00
cuda_rtc use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
db [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
distributed [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
experiments use irange for loops 2 (#66746) 2021-12-10 04:26:23 -08:00
ideep Update fbcode symlinks for mkl-dnn ideep 2.5.2 2022-03-04 06:40:08 +00:00
image fix anon-struct usage that's a warning/error -Wnon-c-typedef-for-linkage (#137) 2022-05-02 18:14:30 +00:00
mobile use irange for loops 6 (#66742) 2021-12-07 16:07:50 -08:00
mpi [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
observers [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
onnx [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
operators Tentative fix for CUDA-10.2 windows build failures (#76204) 2022-04-22 15:15:18 +00:00
opt Fix some typos. 2022-04-11 21:55:59 +00:00
perfkernels Fix sign-compare in caffe2 2022-04-05 00:08:05 +00:00
predictor print available modules in predictor error message (#78101) 2022-05-24 18:47:06 +00:00
proto [AutoAccept][Codemod][FBSourceClangFormatLinter] Daily arc lint --take CLANGFORMAT 2022-05-02 22:07:42 +00:00
python [caffe2] fix type annotations for workspace.SwitchWorkspace() (#77464) 2022-05-20 19:22:06 +00:00
quantization Remove -Wno-unused-variable from utils.cmake (take 2) (#75538) 2022-04-20 17:41:59 +00:00
queue Remove -Wno-unused-variable from utils.cmake (take 2) (#75538) 2022-04-20 17:41:59 +00:00
serialize Revert "stft: remove non-center overload and python functional wrapper" 2022-05-09 19:59:46 +00:00
sgd Fix some typos. 2022-04-11 21:55:59 +00:00
share [AutoAccept][Codemod][FBSourceClangFormatLinter] Daily arc lint --take CLANGFORMAT 2022-04-07 13:12:37 +00:00
test [NOOP][clangformat][codemod] Enable CLANGFORMAT for caffe2/caffe2/* (#67624) 2021-11-02 22:14:04 -07:00
transforms use irange for loops (#69533) 2021-12-07 16:53:27 -08:00
utils [caffe2] drop XROS ports (#76366) 2022-04-26 23:54:22 +00:00
video use irange for loops (#69533) 2021-12-07 16:53:27 -08:00
__init__.py Add warning when importing caffe2 on build without BUILD_CAFFE2=1 2022-04-21 12:28:10 +00:00
.clang-format
CMakeLists.txt Codegen Non-Native IR Nodes (#76535) 2022-05-24 19:29:23 +00:00
README.md
release-notes.md
requirements.txt
unexported_symbols.lds Hide all symbols in llvm namespace (#63272) 2021-08-15 11:29:43 -07:00
VERSION_NUMBER
version_script.lds Hide all symbols in llvm namespace (#63272) 2021-08-15 11:29:43 -07:00

Caffe2

Jenkins Build Status

Caffe2 is a lightweight, modular, and scalable deep learning framework. Building on the original Caffe, Caffe2 is designed with expression, speed, and modularity in mind.

Questions and Feedback

Please use GitHub issues (https://github.com/pytorch/pytorch/issues) to ask questions, report bugs, and request new features.

Further Resources on Caffe2.ai