Resize `images` to `size` using area interpolation. Input images can be of different types but output images are always float. The range of pixel values for the output image might be slightly different from the range for the input image because of limited numerical precision. To guarantee an outpu
(scope *Scope, images tf.Output, size tf.Output, optional ...ResizeAreaAttr)
| 40865 | // Returns 4-D with shape |
| 40866 | // `[batch, new_height, new_width, channels]`. |
| 40867 | func ResizeArea(scope *Scope, images tf.Output, size tf.Output, optional ...ResizeAreaAttr) (resized_images tf.Output) { |
| 40868 | if scope.Err() != nil { |
| 40869 | return |
| 40870 | } |
| 40871 | attrs := map[string]interface{}{} |
| 40872 | for _, a := range optional { |
| 40873 | a(attrs) |
| 40874 | } |
| 40875 | opspec := tf.OpSpec{ |
| 40876 | Type: "ResizeArea", |
| 40877 | Input: []tf.Input{ |
| 40878 | images, size, |
| 40879 | }, |
| 40880 | Attrs: attrs, |
| 40881 | } |
| 40882 | op := scope.AddOperation(opspec) |
| 40883 | return op.Output(0) |
| 40884 | } |
| 40885 | |
| 40886 | // InfeedEnqueuePrelinearizedBufferAttr is an optional argument to InfeedEnqueuePrelinearizedBuffer. |
| 40887 | type InfeedEnqueuePrelinearizedBufferAttr func(optionalAttr) |