pytorch/caffe2/python/predictor
Alexander Sidorov 60aa8c793d Update caffe2 from facebook (#2178)
* [C2] Don't crash kernel in case of invalid shapes for ConcatOp

Enforce correctness of the shapes for input tensors so we won't access invalid index.

* [Caffe2] Add analytical performance counters to Dynolog

Initial diff for counting analytical flops and memory writes for C2 operators.

* BBoxTransform op: Handle RoIs from multiple images per batch

BBoxTransform op used during typical Faster-RCNN inference operates only on
RoIs from a single image (no batching). Adding support to handle that with an
optional output blob containing the batch splits (i.e., the number of RoIs
belonging to each item in the batch). The code is perfectly backward compatible
and shouldn't break any existing models..

* [mkl] Make MKL-DNN cooperate with memongered nets

C2's MKL-DNN implementation caches input dims and reuses intermediate and
output buffers across net runs, which prevents memonger from being used. This
may not always be useful since input dims may vary widely in many cases and
we'll end up reallocating anyway. Added an option to force reallocation when
memonger is used.

* [oncall] fix batch gather ops for empty input

still need to bisect for the breaking change, but this shall fix the case for empty input.

the error logging is like: https://interncache-ftw.fbcdn.net/t49.3276-7/23938497_293562711176943_6500112636590424064_n.txt?_nc_log=1

@[557759185:raychen] can you help to subscribe oncall from ads side. this may affect the Sigrid online trainer.

* optimize BatchOneHotOp

We want to iterate in row-major as opposed to column-major for better
locality.

* Supported exporting model with int blobs.

Supported exporting model with int blobs. Needed by condensenet.

* BoxWithNMSLimit op: Handle boxes from mutiple images per batch

Similar to D7135360. Added support for multiple images per batch in the op.
Takes an optional additional input "batch_splits" as output by BBoxTransform
op, and returns new batch_splits after applying NMS and filtering. Otherwise,
backward compatibility is maintained.
2018-03-07 16:41:22 -08:00
..
__init__.py Experimental support for setup.py develop mode install 2018-02-12 23:36:18 -08:00
mobile_exporter_test.py Update caffe2 from facebook (#2178) 2018-03-07 16:41:22 -08:00
mobile_exporter.py Update caffe2 from facebook (#2178) 2018-03-07 16:41:22 -08:00
predictor_exporter_test.py Don't allow to export models where parameters are inputs/outputs 2018-02-14 23:54:42 -08:00
predictor_exporter.py Don't allow to export models where parameters are inputs/outputs 2018-02-14 23:54:42 -08:00
predictor_py_utils.py Adding model_id argument to nets in predictor_container when modelInfo exists 2018-02-12 10:38:58 -08:00
predictor_test.py Expose Predictor::run_map to Python 2017-10-18 19:32:56 -07:00
serde.py Re-license to Apache 2017-09-28 16:22:00 -07:00