@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class CropAndResizeGradImage extends Pointer
[num_boxes, crop_height, crop_width, depth]
.
* boxes: A 2-D tensor of shape [num_boxes, 4]
. The i
-th row of the tensor
specifies the coordinates of a box in the box_ind[i]
image and is specified
in normalized coordinates [y1, x1, y2, x2]
. A normalized coordinate value of
y
is mapped to the image coordinate at y * (image_height - 1)
, so as the
[0, 1]
interval of normalized image height is mapped to
[0, image_height - 1] in image height coordinates. We do allow y1 > y2, in
which case the sampled crop is an up-down flipped version of the original
image. The width dimension is treated similarly. Normalized coordinates
outside the
[0, 1]range are allowed, in which case we use
extrapolation_valueto extrapolate the input image values.
* box_ind: A 1-D tensor of shape
[num_boxes]with int32 values in
[0, batch).
The value of
box_ind[i]specifies the image that the
i-th box refers to.
* image_size: A 1-D tensor with value
[batch, image_height, image_width, depth]containing the original image size. Both
image_heightand
image_widthneed
to be positive.
Optional attributes (see
Attrs):
* method: A string specifying the interpolation method. Only 'bilinear' is
supported for now.
Returns:
*
Output: A 4-D tensor of shape
[batch, image_height, image_width, depth]{@code .Modifier and Type | Class and Description |
---|---|
static class |
CropAndResizeGradImage.Attrs
Optional attribute setters for CropAndResizeGradImage
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CropAndResizeGradImage(Pointer p)
Pointer cast constructor.
|
CropAndResizeGradImage(Scope scope,
Input grads,
Input boxes,
Input box_ind,
Input image_size,
int T) |
CropAndResizeGradImage(Scope scope,
Input grads,
Input boxes,
Input box_ind,
Input image_size,
int T,
CropAndResizeGradImage.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static CropAndResizeGradImage.Attrs |
Method(BytePointer x) |
static CropAndResizeGradImage.Attrs |
Method(String x) |
Node |
node() |
Operation |
operation() |
CropAndResizeGradImage |
operation(Operation setter) |
Output |
output() |
CropAndResizeGradImage |
output(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public CropAndResizeGradImage(Pointer p)
Pointer(Pointer)
.public CropAndResizeGradImage(@Const @ByRef Scope scope, @ByVal Input grads, @ByVal Input boxes, @ByVal Input box_ind, @ByVal Input image_size, @Cast(value="tensorflow::DataType") int T)
public Node node()
@ByVal public static CropAndResizeGradImage.Attrs Method(@tensorflow.StringPiece BytePointer x)
@ByVal public static CropAndResizeGradImage.Attrs Method(@tensorflow.StringPiece String x)
public CropAndResizeGradImage operation(Operation setter)
public CropAndResizeGradImage output(Output setter)
Copyright © 2022. All rights reserved.