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

Function ResizeArea

tensorflow/go/op/wrappers.go:40867–40884  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

40865// Returns 4-D with shape
40866// `[batch, new_height, new_width, channels]`.
40867func 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.
40887type InfeedEnqueuePrelinearizedBufferAttr func(optionalAttr)

Callers 1

TestAddOperationFailureFunction · 0.85

Calls 4

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

Tested by 1

TestAddOperationFailureFunction · 0.68