@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.MirrorPad extends Pointer
input with mirrored values according to the paddings
you specify. paddings is an integer tensor with shape [n, 2], where n is
the rank of input. For each dimension D of input, paddings[D, 0] indicates
how many values to add before the contents of input in that dimension, and
paddings[D, 1] indicates how many values to add after the contents of input
in that dimension. Both paddings[D, 0] and paddings[D, 1] must be no greater
than input.dim_size(D) (or input.dim_size(D) - 1) if copy_border is true
(if false, respectively).
The padded size of each dimension D of the output is:
paddings(D, 0) + input.dim_size(D) + paddings(D, 1)
For example:
# 't' is [[1, 2, 3], [4, 5, 6]].
# 'paddings' is [[1, 1]], [2, 2]].
# 'mode' is SYMMETRIC.
# rank of 't' is 2.
pad(t, paddings) ==> [[2, 1, 1, 2, 3, 3, 2]
[2, 1, 1, 2, 3, 3, 2]
[5, 4, 4, 5, 6, 6, 5]
[5, 4, 4, 5, 6, 6, 5]]
Arguments:
* scope: A Scope object
* input: The input tensor to be padded.
* paddings: A two-column matrix specifying the padding sizes. The number of
rows must be the same as the rank of input.
* mode: Either REFLECT or SYMMETRIC. In reflect mode the padded regions
do not include the borders, while in symmetric mode the padded regions
do include the borders. For example, if input is [1, 2, 3] and paddings
is [0, 2], then the output is [1, 2, 3, 2, 1] in reflect mode, and
it is [1, 2, 3, 3, 2] in symmetric mode.
Returns:
* Output: The padded tensor.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
MirrorPad(Pointer p)
Pointer cast constructor.
|
MirrorPad(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Input paddings,
BytePointer mode) |
MirrorPad(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Input paddings,
String mode) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.MirrorPad |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.MirrorPad |
output(tensorflow.Output output) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic MirrorPad(Pointer p)
Pointer.Pointer(Pointer).public MirrorPad(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @ByVal tensorflow.Input paddings, @tensorflow.StringPiece BytePointer mode)
public MirrorPad(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @ByVal tensorflow.Input paddings, @tensorflow.StringPiece String mode)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByRef public tensorflow.Operation operation()
public tensorflow.MirrorPad operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.MirrorPad output(tensorflow.Output output)
Copyright © 2019. All rights reserved.