Crate caffe2op_concatsplit
source ·Structs
- | Concatenate a list of tensors into a | single tensor. Similar functionality | to | | Numpy’s concatenate | function. The
axis
argument specifies | what axis along which the arrays will | be concatenated. | | When set to non-zero (default=0), the |add_axis
argument adds the axis specified | inaxis
to all input tensors. | | Github Links: | | - https://github.com/pytorch/pytorch/blob/master/caffe2/operators/concat_split_op.cc | | - https://github.com/pytorch/pytorch/blob/master/caffe2/operators/concat_split_op.h | - | Split a tensor into a list of tensors, | given a lengths input, along the specified | ‘axis’. If
K
outputs are provided, | the op assumeslen(lengths) % K == 0
. | | Theinput
will be split intoK
parts. | Each part of lengthsum(lengths[i*k:i*k+k))
| - | Split an
input
tensor into a list of | tensors, along the axis specified by | theaxis
dimension. The lengths of | the split can be specified using argument |split
or optional second input blob | to the operator. Otherwise, the tensor | is split to equal sized parts. | | Github Links: | | - https://github.com/pytorch/pytorch/blob/master/caffe2/operators/concat_split_op.cc |