@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.SparseToDense extends Pointer
dense with shape output_shape such that
# If sparse_indices is scalar
dense[i] = (i == sparse_indices ? sparse_values : default_value)
# If sparse_indices is a vector, then for each i
dense[sparse_indices[i]] = sparse_values[i]
# If sparse_indices is an n by d matrix, then for each i in [0, n)
dense[sparse_indices[i][0], ..., sparse_indices[i][d-1]] = sparse_values[i]
All other values in dense are set to default_value. If sparse_values is a
scalar, all sparse indices are set to this single value.
Indices should be sorted in lexicographic order, and indices must not
contain any repeats. If validate_indices is true, these properties
are checked during execution.
Arguments:
* scope: A Scope object
* sparse_indices: 0-D, 1-D, or 2-D. sparse_indices[i] contains the complete
index where sparse_values[i] will be placed.
* output_shape: 1-D. Shape of the dense output tensor.
* sparse_values: 1-D. Values corresponding to each row of sparse_indices,
or a scalar value to be used for all sparse indices.
* default_value: Scalar value to set for indices not specified in
sparse_indices.
Optional attributes (see Attrs):
* validate_indices: If true, indices are checked to make sure they are sorted in
lexicographic order and that there are no repeats.
Returns:
* Output: Dense output tensor of shape output_shape.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.SparseToDense.Attrs
Optional attribute setters for SparseToDense
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
SparseToDense(Pointer p)
Pointer cast constructor.
|
SparseToDense(tensorflow.Scope scope,
tensorflow.Input sparse_indices,
tensorflow.Input output_shape,
tensorflow.Input sparse_values,
tensorflow.Input default_value) |
SparseToDense(tensorflow.Scope scope,
tensorflow.Input sparse_indices,
tensorflow.Input output_shape,
tensorflow.Input sparse_values,
tensorflow.Input default_value,
tensorflow.SparseToDense.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Output |
dense() |
tensorflow.SparseToDense |
dense(tensorflow.Output dense) |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.SparseToDense |
operation(tensorflow.Operation operation) |
static tensorflow.SparseToDense.Attrs |
ValidateIndices(boolean x) |
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 SparseToDense(Pointer p)
Pointer.Pointer(Pointer).public SparseToDense(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input sparse_indices, @ByVal tensorflow.Input output_shape, @ByVal tensorflow.Input sparse_values, @ByVal tensorflow.Input default_value)
public SparseToDense(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input sparse_indices, @ByVal tensorflow.Input output_shape, @ByVal tensorflow.Input sparse_values, @ByVal tensorflow.Input default_value, @Const @ByRef tensorflow.SparseToDense.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.SparseToDense.Attrs ValidateIndices(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.SparseToDense operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output dense()
public tensorflow.SparseToDense dense(tensorflow.Output dense)
Copyright © 2019. All rights reserved.