summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndre Ambrosio Boechat <boechat107@gmail.com>2015-01-30 13:57:31 -0200
committerEvan Shelhamer <shelhamer@imaginarynumber.net>2015-02-19 18:33:29 -0800
commit5d15ed7d302b7977c4df621c05013e2117409b3e (patch)
treee726a7fc922180c987a06faadabb211621165fbe /docs
parent7867ead95af415320b50201bf0dd926528e8e0d5 (diff)
downloadcaffeonacl-5d15ed7d302b7977c4df621c05013e2117409b3e.tar.gz
caffeonacl-5d15ed7d302b7977c4df621c05013e2117409b3e.tar.bz2
caffeonacl-5d15ed7d302b7977c4df621c05013e2117409b3e.zip
Brief explanation of SLICE layer's attributes
* A sample code was added. * `slice_dim` and `slice_point` attributes were explained.
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorial/layers.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/tutorial/layers.md b/docs/tutorial/layers.md
index 5f8f519c..34bb4805 100644
--- a/docs/tutorial/layers.md
+++ b/docs/tutorial/layers.md
@@ -451,6 +451,26 @@ The `CONCAT` layer is a utility layer that concatenates its multiple input blobs
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
+
+ layers {
+ 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 {
+ slice_dim: 1
+ slice_point: 1
+ slice_point: 2
+ }
+ }
+
+`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).
+
+
#### Elementwise Operations
`ELTWISE`