@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.SparseReshape extends Pointer
input_indices are recomputed based on the requested new_shape.
If one component of new_shape is the special value -1, the size of that
dimension is computed so that the total dense size remains constant. At
most one component of new_shape can be -1. The number of dense elements
implied by new_shape must be the same as the number of dense elements
originally implied by input_shape.
Reshaping does not affect the order of values in the SparseTensor.
If the input tensor has rank R_in and N non-empty values, and new_shape
has length R_out, then input_indices has shape [N, R_in],
input_shape has length R_in, output_indices has shape [N, R_out], and
output_shape has length R_out.
Arguments:
* scope: A Scope object
* input_indices: 2-D. N x R_in matrix with the indices of non-empty values in a
SparseTensor.
* input_shape: 1-D. R_in vector with the input SparseTensor's dense shape.
* new_shape: 1-D. R_out vector with the requested new dense shape.
Returns:
* Output output_indices: 2-D. N x R_out matrix with the updated indices of non-empty
values in the output SparseTensor.
* Output output_shape: 1-D. R_out vector with the full dense shape of the output
SparseTensor. This is the same as new_shape but with any -1 dimensions
filled in.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
SparseReshape(Pointer p)
Pointer cast constructor.
|
SparseReshape(tensorflow.Scope scope,
tensorflow.Input input_indices,
tensorflow.Input input_shape,
tensorflow.Input new_shape) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Operation |
operation() |
tensorflow.SparseReshape |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output_indices() |
tensorflow.SparseReshape |
output_indices(tensorflow.Output output_indices) |
tensorflow.Output |
output_shape() |
tensorflow.SparseReshape |
output_shape(tensorflow.Output output_shape) |
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 SparseReshape(Pointer p)
Pointer.Pointer(Pointer).public SparseReshape(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input_indices, @ByVal tensorflow.Input input_shape, @ByVal tensorflow.Input new_shape)
@ByRef public tensorflow.Operation operation()
public tensorflow.SparseReshape operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output_indices()
public tensorflow.SparseReshape output_indices(tensorflow.Output output_indices)
@ByRef public tensorflow.Output output_shape()
public tensorflow.SparseReshape output_shape(tensorflow.Output output_shape)
Copyright © 2019. All rights reserved.