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)
| 42896 | // |
| 42897 | // Returns The max pooled output tensor. |
| 42898 | func 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. |
| 42918 | func IgnoreErrorsDataset(scope *Scope, input_dataset tf.Output, output_types []tf.DataType, output_shapes []tf.Shape) (handle tf.Output) { |