Performs max pooling on the input. Arguments: input: 4-D input to pool over. ksize: The size of the window for each dimension of the input tensor. strides: The stride of the sliding window for each dimension of the input tensor. padding: The type of padding algorithm to use. Returns The max po
(scope *Scope, input tf.Output, ksize tf.Output, strides tf.Output, padding string, optional ...MaxPoolV2Attr)
| 16643 | // |
| 16644 | // Returns The max pooled output tensor. |
| 16645 | func MaxPoolV2(scope *Scope, input tf.Output, ksize tf.Output, strides tf.Output, padding string, optional ...MaxPoolV2Attr) (output tf.Output) { |
| 16646 | if scope.Err() != nil { |
| 16647 | return |
| 16648 | } |
| 16649 | attrs := map[string]interface{}{"padding": padding} |
| 16650 | for _, a := range optional { |
| 16651 | a(attrs) |
| 16652 | } |
| 16653 | opspec := tf.OpSpec{ |
| 16654 | Type: "MaxPoolV2", |
| 16655 | Input: []tf.Input{ |
| 16656 | input, ksize, strides, |
| 16657 | }, |
| 16658 | Attrs: attrs, |
| 16659 | } |
| 16660 | op := scope.AddOperation(opspec) |
| 16661 | return op.Output(0) |
| 16662 | } |
| 16663 | |
| 16664 | // Returns the truth value of (x == y) element-wise. |
| 16665 | // |