pytorch/caffe2
Martin Yuan 30a7c768d7 [RFC] Modularize functions of parsing bytecode (#61862)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61862

Modularize functions of parsing bytecode tables so that they can be used as needed in situations other than mobile lite interpreter.
* The decoupled functions are re-used by current lite interpreter loader.
* The bytecode can be serialized/deserialized from other formats.
* The decoupled functions have minimum dependencies on other PyTorch components.

Next:
Build a driver binary to include the parser and interpreter, but only has necessary dependency on other PyTorch components.
ghstack-source-id: 137867287

Test Plan:
As an example, a simple bytecode is parsed to a mobile function, and directly run in the added unit test, `RunTimeTest:ParseBytecode`. It contains basic control flow (if, else) and basic data orchestration (list construction).
CI

Reviewed By: larryliu0820

Differential Revision: D29798382

Pulled By: iseeyuan

fbshipit-source-id: 1c173a5f5d37097e3a97baec3f3e48e1eea1400f
2021-09-11 22:24:05 -07:00
..
contrib [dte] scaffolding for c2 operator broadcasting fastpath (1/x) (#62369) 2021-07-29 16:31:02 -07:00
core Factor out TensorBase that doesn't depend on native operators (#63612) 2021-09-08 13:28:54 -07:00
cuda_rtc
db Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
distributed Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
experiments
ideep [dte] scaffolding for c2 operator broadcasting fastpath (1/x) (#62369) 2021-07-29 16:31:02 -07:00
image
mobile
mpi
observers Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
onnx Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
operators [caffe2][tiny] Add logging to report what the current lengths are when mismatched lengths are detected (#64768) 2021-09-09 16:46:55 -07:00
opt Fix warnings (#62930) 2021-08-11 14:07:10 -07:00
perfkernels Revert D30279364: [codemod][lint][fbcode/c*] Enable BLACK by default 2021-08-12 11:45:01 -07:00
predictor [BE] irangefy (#62928) 2021-08-07 13:34:13 -07:00
proto Add support for the ONNX Runtime Eager Mode backend (#58248) 2021-08-20 11:17:13 -07:00
python Fix bytes_written and bytes_read (#64244) 2021-09-01 13:35:41 -07:00
quantization [dte] scaffolding for c2 operator broadcasting fastpath (1/x) (#62369) 2021-07-29 16:31:02 -07:00
queue [BE] irangefy (#62928) 2021-08-07 13:34:13 -07:00
serialize [PyTorch Edge] Support default args with out arg, flag off (#63540) 2021-09-02 01:36:16 -07:00
sgd Fix bytes_written and bytes_read (#64244) 2021-09-01 13:35:41 -07:00
share Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
test
transforms Disable avoid-non-const-global-variables lint check (#62008) 2021-07-22 18:04:40 -07:00
utils [Caffe2] Create fewer strings during argument fetching (#64285) 2021-09-01 13:30:54 -07:00
video
.clang-format
__init__.py
c2_aten_srcs.bzl
CMakeLists.txt [RFC] Modularize functions of parsing bytecode (#61862) 2021-09-11 22:24:05 -07: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