FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Brief explanation of SLICE layer's attributes · 2php/CaffeOnACL@5d15ed7 · GitHub

Repository navigation

Commit 5d15ed7

Browse files
authored andcommitted
Brief explanation of SLICE layer's attributes
* A sample code was added. * `slice_dim` and `slice_point` attributes were explained.
1 parent 7867ead commit 5d15ed7

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎docs/tutorial/layers.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,26 @@ The `CONCAT` layer is a utility layer that concatenates its multiple input blobs
451451

452452
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.
453453

454+
* Sample
455+
456+
layers {
457+
name: "slicer_label"
458+
type: SLICE
459+
bottom: "label"
460+
## Example of label with a shape N x 3 x 1 x 1
461+
top: "label1"
462+
top: "label2"
463+
top: "label3"
464+
slice_param {
465+
slice_dim: 1
466+
slice_point: 1
467+
slice_point: 2
468+
}
469+
}
470+
471+
`slice_dim` indicates the target dimension and can assume only two values: 0 for num or 1 for channel; `slice_point` indicates indexes in the selected dimension (the number of indexes must be equal to the number of top blobs minus one).
472+
473+
454474
#### Elementwise Operations
455475

456476
`ELTWISE`

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL