Files
pytorch/caffe2
Janusz Kudelka 902409be56 caffe2: datasets pack/unpack
Summary:
Two new operators to pack and unpack a dataset. This is so that we can
re-use other operators that do not understand the schema format. The immediate
use-case is to use it with a partition operator.

Packing works by splitting the input into separate tensors, putting them in a
vector and wrapping in a shared_ptr (as opposed to a unique_ptr, so we can
copy).

Unpack takes the packed input and concatenates it back to the original.

I also had a gard time understanding the iteration, so I created a TreeWalker
that just hides the complexity of operating with all the arrays and makes the
short functions for a given purpose that at least for me are easier to
understand.

Reviewed By: dzhulgakov

Differential Revision: D4918002

fbshipit-source-id: ecbf9196ed25e886a94383961176b8c84dde2d2f
2017-04-24 16:09:39 -07:00
..
2017-03-29 06:46:16 -07:00
2017-04-24 16:09:39 -07:00
2017-04-24 16:09:39 -07:00
2017-04-19 12:02:06 -07:00
2017-04-24 15:52:26 -07:00