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

Function MaxPool3D

tensorflow/go/op/wrappers.go:42898–42915  ·  view source on GitHub ↗

Performs 3D max pooling on the input. Arguments: input: Shape `[batch, depth, rows, cols, channels]` tensor to pool over. ksize: 1-D tensor of length 5. The size of the window for each dimension of the input tensor. Must have `ksize[0] = ksize[4] = 1`. strides: 1-D tensor of length 5. The stride

(scope *Scope, input tf.Output, ksize []int64, strides []int64, padding string, optional ...MaxPool3DAttr)

Source from the content-addressed store, hash-verified

42896//
42897// Returns The max pooled output tensor.
42898func MaxPool3D(scope *Scope, input tf.Output, ksize []int64, strides []int64, padding string, optional ...MaxPool3DAttr) (output tf.Output) {
42899 if scope.Err() != nil {
42900 return
42901 }
42902 attrs := map[string]interface{}{"ksize": ksize, "strides": strides, "padding": padding}
42903 for _, a := range optional {
42904 a(attrs)
42905 }
42906 opspec := tf.OpSpec{
42907 Type: "MaxPool3D",
42908 Input: []tf.Input{
42909 input,
42910 },
42911 Attrs: attrs,
42912 }
42913 op := scope.AddOperation(opspec)
42914 return op.Output(0)
42915}
42916
42917// Creates a dataset that contains the elements of `input_dataset` ignoring errors.
42918func IgnoreErrorsDataset(scope *Scope, input_dataset tf.Output, output_types []tf.DataType, output_shapes []tf.Shape) (handle tf.Output) {

Callers 1

TEST_FFunction · 0.85

Calls 4

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

Tested by 1

TEST_FFunction · 0.68