@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class CropAndResizeGradBoxes extends Pointer
[num_boxes, crop_height, crop_width, depth]
.
* image: A 4-D tensor of shape [batch, image_height, image_width, depth]
.
Both image_height
and image_width
need to be positive.
* 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.
Optional attributes (see
Attrs):
* method: A string specifying the interpolation method. Only 'bilinear' is
supported for now.
Returns:
*
Output: A 2-D tensor of shape
[num_boxes, 4]{@code .Modifier and Type | Class and Description |
---|---|
static class |
CropAndResizeGradBoxes.Attrs
Optional attribute setters for CropAndResizeGradBoxes
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
CropAndResizeGradBoxes(Pointer p)
Pointer cast constructor.
|
CropAndResizeGradBoxes(Scope scope,
Input grads,
Input image,
Input boxes,
Input box_ind) |
CropAndResizeGradBoxes(Scope scope,
Input grads,
Input image,
Input boxes,
Input box_ind,
CropAndResizeGradBoxes.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
static CropAndResizeGradBoxes.Attrs |
Method(BytePointer x) |
static CropAndResizeGradBoxes.Attrs |
Method(String x) |
Node |
node() |
Operation |
operation() |
CropAndResizeGradBoxes |
operation(Operation setter) |
Output |
output() |
CropAndResizeGradBoxes |
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 CropAndResizeGradBoxes(Pointer p)
Pointer(Pointer)
.public CropAndResizeGradBoxes(@Const @ByRef Scope scope, @ByVal Input grads, @ByVal Input image, @ByVal Input boxes, @ByVal Input box_ind)
public Node node()
@ByVal public static CropAndResizeGradBoxes.Attrs Method(@tensorflow.StringPiece BytePointer x)
@ByVal public static CropAndResizeGradBoxes.Attrs Method(@tensorflow.StringPiece String x)
public CropAndResizeGradBoxes operation(Operation setter)
public CropAndResizeGradBoxes output(Output setter)
Copyright © 2022. All rights reserved.