@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.Squeeze extends Pointer
input, this operation returns a tensor of the same type with
all dimensions of size 1 removed. If you don't want to remove all size 1
dimensions, you can remove specific size 1 dimensions by specifying
axis.
For example:
# 't' is a tensor of shape [1, 2, 1, 3, 1, 1]
shape(squeeze(t)) ==> [2, 3]
Or, to remove specific size 1 dimensions:
# 't' is a tensor of shape [1, 2, 1, 3, 1, 1]
shape(squeeze(t, [2, 4])) ==> [1, 2, 3, 1]
Arguments:
* scope: A Scope object
* input: The input to squeeze.
Optional attributes (see Attrs):
* axis: If specified, only squeezes the dimensions listed. The dimension
index starts at 0. It is an error to squeeze a dimension that is not 1. Must
be in the range [-rank(input), rank(input)).
Returns:
* Output: Contains the same data as input, but has one or more dimensions of
size 1 removed.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.Squeeze.Attrs
Optional attribute setters for Squeeze
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Squeeze(Pointer p)
Pointer cast constructor.
|
Squeeze(tensorflow.Scope scope,
tensorflow.Input input) |
Squeeze(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Squeeze.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
static tensorflow.Squeeze.Attrs |
Axis(int... x) |
static tensorflow.Squeeze.Attrs |
Axis(IntBuffer x) |
static tensorflow.Squeeze.Attrs |
Axis(IntPointer x) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.Squeeze |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.Squeeze |
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 Squeeze(Pointer p)
Pointer.Pointer(Pointer).public Squeeze(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input)
public Squeeze(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @Const @ByRef tensorflow.Squeeze.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.Squeeze.Attrs Axis(@tensorflow.ArraySlice IntPointer x)
@ByVal public static tensorflow.Squeeze.Attrs Axis(@tensorflow.ArraySlice IntBuffer x)
@ByVal public static tensorflow.Squeeze.Attrs Axis(@tensorflow.ArraySlice int... x)
@ByRef public tensorflow.Operation operation()
public tensorflow.Squeeze operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.Squeeze output(tensorflow.Output output)
Copyright © 2019. All rights reserved.