pytorch/caffe2
Yinghai Lu 851579d868 [Onnxifi] Blacklist ops in the partitions that are supposed to run on CPU (#34991)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34991

The definition for the partition to be run on CPU is that it will contain an empty device_id list. We chose this over an op with no partitioning info because
1. Backward compatible with models that don't have partitioning info
2. Being explicit can flush out issues in earlier stage.

Test Plan:
```
LD_LIBRARY_PATH=third-party-buck/platform007/build/fb-nnpi/lib ./sigrid/predictor/tests/scripts/launch_ads_test_predictor.sh -g --nnpi --force_models=175742819_0 --sigrid_force_model_dir=$HOME/models/ --smc_server_port=7447 --glow-num-devices=1 --glow_interpreter_memory=$((256<<20)) --caffe2_fbgemm_fake_fp16_clamp --glow_global_fp16 --glow_clip_fp16 --glow_global_fused_scale_offset_fp16 --fbgemm_deserialize_to_original_format --caffe2_dump_input_of_type=Onnxifi --caffe2_logging_print_tensor --caffe2_predictor_use_memonger=no --onnxifi_debug_mode=true --caffe2_dump_input_with_recordio --caffe2_predictor_onnxifi_max_batch_size=32 --caffe2_predictor_onnxifi_max_seq_size=9600  --glow_onnxifi_backend=Interpreter  --onnxifi_blacklist_ops=SparseLengthsSum,SparseLengthsWeightedSum --glow_dump_graph
```

Now it hits a new error.

Reviewed By: ipiszy

Differential Revision: D20503167

fbshipit-source-id: 5a609760130bd1131e299ce85b7824cbcbdf1f09
2020-03-19 15:10:49 -07:00
..
contrib Fix signed-unsigned warnings (#34791) 2020-03-19 00:29:56 -07:00
core Fix signed-unsigned warnings (#34791) 2020-03-19 00:29:56 -07:00
cuda_rtc
db [Caffe2] Skip //caffe2/caffe2:caffe2_test_cpu -- 'DBSeekTest\.RocksDB' 2020-02-21 21:30:02 -08:00
distributed
experiments Fix typos, via a Levenshtein-type corrector (#31523) 2020-01-17 16:03:19 -08:00
ideep Enable mkldnn on windows (#31355) 2020-01-27 09:00:02 -08:00
image Fix typos, via a Levenshtein-type corrector (#31523) 2020-01-17 16:03:19 -08:00
mobile Fix spelling errors 2020-01-28 04:46:15 -08:00
mpi
observers preprocessor cleanup (#33957) 2020-03-02 13:37:19 -08:00
onnx Fix typos, via a Levenshtein-type corrector (#31523) 2020-01-17 16:03:19 -08:00
operators Fix signed-unsigned warnings (#34791) 2020-03-19 00:29:56 -07:00
opt [Onnxifi] Blacklist ops in the partitions that are supposed to run on CPU (#34991) 2020-03-19 15:10:49 -07:00
perfkernels [caffe2] simplify caffe2 code with fbgemm handling block size 1 emb (#33774) 2020-02-27 14:45:28 -08:00
predictor Fix typos, via a Levenshtein-type corrector (#31523) 2020-01-17 16:03:19 -08:00
proto [DPER3][Shape Inference] Initial Shape Inference in DPER3 frontend (#33607) 2020-03-12 20:25:50 -07:00
python [DPER3][Shape inference] Update Shape Information in dper3 backend (#34475) 2020-03-19 13:49:34 -07:00
quantization Fix missing header (#34762) 2020-03-15 00:19:42 -07:00
queue Replace c10::guts::stuff with std::stuff (#30915) 2019-12-16 13:57:19 -08:00
serialize [jit] Add type tags to lists/dicts in pickle (#33255) 2020-03-10 19:17:01 -07:00
sgd Revert D20289209: Support RowWiseSparseAdam on GPU 2020-03-18 07:35:07 -07:00
share [caffe2] simplify relative error expr (#32999) 2020-02-19 16:35:44 -08:00
test
transforms Fix signed-unsigned warnings (#34791) 2020-03-19 00:29:56 -07:00
utils [caffe2] fix Transpose2D calls in NHWC<->NCHW (#34625) 2020-03-16 15:18:44 -07:00
video Fix compilation error when buildng with FFMPEG (#27589) 2020-02-13 11:23:48 -08:00
.clang-format
__init__.py
c2_aten_srcs.bzl Back out "Back out "Back out "Revert D18542342: Boxed variable dispatch""" (#30650) 2019-12-06 11:45:09 -08:00
CMakeLists.txt Respect dist autograd context in torch.jit._fork. (#34360) 2020-03-19 14:12:28 -07:00
README.md
release-notes.md
requirements.txt Add requests as a legit dependency (#25596) 2019-09-04 17:43:37 -07:00
VERSION_NUMBER

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