pytorch/caffe2
Mingda Li f2f43ad2da Add new LengthsSplit operator (#10974)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/10974

Pull Request resolved: https://github.com/pytorch/pytorch/pull/10291

This new operator will do the following:

Given a LENGTHS vector and n_splits, output a "split" LENGTHS vector where:

1. Each length in input vector is split into n_splits values (thus output vector should have LENGTHS.size(0) * n_splits elements)
2. The new lengths in output should be evenly split, and if the length is not divisible by n_splits, then order new values in descending order. (e.g. n_splits = 3, length = 5 -> 2 2 1)
3. If n_splits > some element in the array, its split elements will contain 0s. (e.g. n_splits = 3, length = 2 - > 1 1 0)

Reviewed By: bddppq, chocjy

Differential Revision: D9013119

fbshipit-source-id: 82bf3371ec08c41fc3379177f0007afc142e0d84
2018-09-10 15:40:28 -07:00
..
contrib Narrowing Blob (#11167) 2018-09-10 12:40:16 -07:00
core Narrowing Blob (#11167) 2018-09-10 12:40:16 -07:00
cuda_rtc
db Replace direct include of caffe2.pb.h with an intermediary header caffe2_pb.h (#10946) 2018-08-28 11:57:08 -07:00
distributed Windows DLL build with Caffe2 code (#11266) 2018-09-06 15:12:20 -07:00
experiments Move filler interface to operator schema (#10522) 2018-08-15 12:40:18 -07:00
ideep Narrowing Blob (#11167) 2018-09-10 12:40:16 -07:00
image
mkl Narrowing Blob (#11167) 2018-09-10 12:40:16 -07:00
mobile Narrowing Blob (#11167) 2018-09-10 12:40:16 -07:00
mpi Narrowing Blob (#11167) 2018-09-10 12:40:16 -07:00
observers Narrowing Blob (#11167) 2018-09-10 12:40:16 -07:00
onnx fix the slice onnx exporting 2018-08-31 17:40:03 -07:00
operators Add new LengthsSplit operator (#10974) 2018-09-10 15:40:28 -07:00
opt Roll nomnigraph build into caffe2 (#11303) 2018-09-06 19:38:09 -07:00
perfkernels Faster random number generation in fused_rowwise_random_quantization_ops (#10634) 2018-08-22 13:15:46 -07:00
predictor Narrowing Blob (#11167) 2018-09-10 12:40:16 -07:00
proto Fix more warnings (#11320) 2018-09-07 11:26:58 -07:00
python Add new LengthsSplit operator (#10974) 2018-09-10 15:40:28 -07:00
queue build changes to make cpu unified build working. (#10504) 2018-08-15 17:22:36 -07:00
sgd Narrowing Blob (#11167) 2018-09-10 12:40:16 -07:00
share Replace direct include of caffe2.pb.h with an intermediary header caffe2_pb.h (#10946) 2018-08-28 11:57:08 -07:00
test
transforms caffe2::DeviceType -> at::DeviceType (#11254) 2018-09-05 16:28:09 -07:00
utils Remove FULL_CAFFE2 flag (#11321) 2018-09-07 15:09:44 -07:00
video
.clang-format
__init__.py
CMakeLists.txt Remove FULL_CAFFE2 flag (#11321) 2018-09-07 15:09:44 -07:00
README.md Fix issues link in Caffe2 readme (#10711) 2018-08-20 16:55:11 -07:00
release-notes.md
requirements.txt
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