MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / MaxPoolV2

Function MaxPoolV2

tensorflow/go/op/wrappers.go:16645–16662  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

16643//
16644// Returns The max pooled output tensor.
16645func 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//

Callers 2

TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 4

aClass · 0.85
ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68