Browse Source

add pooling operator doc (#2591)

Co-authored-by: wq.chu <wq.chu@tianrang-inc.com>
tags/20210124
Qing GitHub 5 years ago
parent
commit
8a1f654f95
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      docs/developer-guide/operators.md

+ 22
- 0
docs/developer-guide/operators.md View File

@@ -13,6 +13,7 @@
* [crop](#crop)
* [dequantize](#dequantize)
* [lstm](#lstm)
* [pooling](#pooling)
* [sigmoid](#sigmoid)
* [softmax](#softmax)
* [tanh](#tanh)
@@ -273,6 +274,27 @@ Apply a single-layer LSTM to a feature sequence of `T` timesteps. The input blob
|bias_c_data|float|`[w=num_output, h=4, c=num_directions]`||
|weight_hc_data|float|`[w=num_output, h=num_output * 4, c=num_directions]`||

# pooling

```
x2 = pad(x, pads)
x3 = pooling(x2, kernel, stride)
```

| param id | name | type | default | description |
| -------- | -------------- | ---- | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| 0 | pooling_type | int | 0 | 0: max 1: avg |
| 1 | kernel_w | int | 0 | |
| 2 | stride_w | int | 1 | |
| 3 | pad_left | int | 0 | |
| 4 | global_pooling | int | 0 | |
| 5 | pad_mode | int | 0 | 0: full padding <br/> 1: valid padding <br/> 2: tensorflow padding=SAME or onnx padding=SAME_UPPER <br/> 3: onnx padding=SAME_LOWER |
| 11 | kernel_h | int | kernel_w | |
| 12 | stride_h | int | stride_w | |
| 13 | pad_top | int | pad_left | |
| 14 | pad_right | int | pad_left | |
| 15 | pad_bottom | int | pad_top | |

# sigmoid
```
y = 1 / (1 + exp(-x))


Loading…
Cancel
Save