@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.ParseSingleExample extends Pointer
dense_keys. dense_defaults[j] provides default values
when the example's feature_map lacks dense_key[j]. If an empty Tensor is
provided for dense_defaults[j], then the Feature dense_keys[j] is required.
The input type is inferred from dense_defaults[j], even when it's empty.
If dense_defaults[j] is not empty, and dense_shapes[j] is fully defined,
then the shape of dense_defaults[j] must match that of dense_shapes[j].
If dense_shapes[j] has an undefined major dimension (variable strides dense
feature), dense_defaults[j] must contain a single element:
the padding element.
* num_sparse: The number of sparse features to be parsed from the example. This
must match the lengths of sparse_keys and sparse_types.
* sparse_keys: A list of num_sparse strings.
The keys expected in the Examples' features associated with sparse values.
* dense_keys: The keys expected in the Examples' features associated with dense
values.
* sparse_types: A list of num_sparse types; the data types of data in each
Feature given in sparse_keys.
Currently the ParseSingleExample op supports DT_FLOAT (FloatList),
DT_INT64 (Int64List), and DT_STRING (BytesList).
* dense_shapes: The shapes of data in each Feature given in dense_keys.
The length of this list must match the length of dense_keys. The
number of elements in the Feature corresponding to dense_key[j] must
always equal dense_shapes[j].NumEntries(). If dense_shapes[j] ==
(D0, D1, ..., DN) then the shape of output Tensor dense_values[j]
will be (D0, D1, ..., DN): In the case dense_shapes[j] = (-1, D1,
..., DN), the shape of the output Tensor dense_values[j] will be (M,
D1, .., DN), where M is the number of blocks of elements of length
D1 * .... * DN, in the input.
Returns:
* OutputList sparse_indices
* OutputList sparse_values
* OutputList sparse_shapes
* OutputList dense_valuesPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
ParseSingleExample(Pointer p)
Pointer cast constructor.
|
ParseSingleExample(tensorflow.Scope scope,
tensorflow.Input serialized,
tensorflow.InputList dense_defaults,
long num_sparse,
tensorflow.StringVector sparse_keys,
tensorflow.StringVector dense_keys,
tensorflow.DataTypeVector sparse_types,
tensorflow.PartialTensorShape dense_shapes) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.OutputVector |
dense_values() |
tensorflow.ParseSingleExample |
dense_values(tensorflow.OutputVector dense_values) |
tensorflow.Operation |
operation() |
tensorflow.ParseSingleExample |
operation(tensorflow.Operation operation) |
tensorflow.OutputVector |
sparse_indices() |
tensorflow.ParseSingleExample |
sparse_indices(tensorflow.OutputVector sparse_indices) |
tensorflow.OutputVector |
sparse_shapes() |
tensorflow.ParseSingleExample |
sparse_shapes(tensorflow.OutputVector sparse_shapes) |
tensorflow.OutputVector |
sparse_values() |
tensorflow.ParseSingleExample |
sparse_values(tensorflow.OutputVector sparse_values) |
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 ParseSingleExample(Pointer p)
Pointer.Pointer(Pointer).public ParseSingleExample(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input serialized, @ByVal tensorflow.InputList dense_defaults, @Cast(value="tensorflow::int64") long num_sparse, @Cast(value="const tensorflow::gtl::ArraySlice<tensorflow::string>*") @ByRef tensorflow.StringVector sparse_keys, @Cast(value="const tensorflow::gtl::ArraySlice<tensorflow::string>*") @ByRef tensorflow.StringVector dense_keys, @Cast(value="const tensorflow::DataTypeSlice*") @ByRef tensorflow.DataTypeVector sparse_types, @tensorflow.ArraySlice tensorflow.PartialTensorShape dense_shapes)
@ByRef public tensorflow.Operation operation()
public tensorflow.ParseSingleExample operation(tensorflow.Operation operation)
@ByRef @Cast(value="tensorflow::OutputList*") public tensorflow.OutputVector sparse_indices()
public tensorflow.ParseSingleExample sparse_indices(tensorflow.OutputVector sparse_indices)
@ByRef @Cast(value="tensorflow::OutputList*") public tensorflow.OutputVector sparse_values()
public tensorflow.ParseSingleExample sparse_values(tensorflow.OutputVector sparse_values)
@ByRef @Cast(value="tensorflow::OutputList*") public tensorflow.OutputVector sparse_shapes()
public tensorflow.ParseSingleExample sparse_shapes(tensorflow.OutputVector sparse_shapes)
@ByRef @Cast(value="tensorflow::OutputList*") public tensorflow.OutputVector dense_values()
public tensorflow.ParseSingleExample dense_values(tensorflow.OutputVector dense_values)
Copyright © 2019. All rights reserved.