Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.47 KB

slice.md

File metadata and controls

42 lines (32 loc) · 1.47 KB
title
Slice Layer

Slice Layer

The Slice layer is a utility layer that slices an input layer to multiple output layers along a given dimension (currently num or channel only) with given slice indices.

  • Sample

    layer {
      name: "slicer_label"
      type: "Slice"
      bottom: "label"
      ## Example of label with a shape N x 3 x 1 x 1
      top: "label1"
      top: "label2"
      top: "label3"
      slice_param {
        axis: 1
        slice_point: 1
        slice_point: 2
      }
    }
    

axis indicates the target axis; slice_point indicates indexes in the selected dimension (the number of indices must be equal to the number of top blobs minus one).

Parameters

{% highlight Protobuf %} {% include proto/SliceParameter.txt %} {% endhighlight %}