public interface SequenceFeatureConverter extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
N.B. TensorFlow support is experimental and may change without a major version bump.
Modifier and Type | Method and Description |
---|---|
TensorMap |
encode(List<? extends SequenceExample<?>> batch,
ImmutableFeatureMap featureMap)
Encodes a batch of examples as a feed dict.
|
TensorMap |
encode(SequenceExample<?> example,
ImmutableFeatureMap featureMap)
Encodes an example as a feed dict.
|
Set<String> |
inputNamesSet()
Gets a view of the names of the inputs this converter produces.
|
TensorMap encode(SequenceExample<?> example, ImmutableFeatureMap featureMap)
example
- the input examplefeatureMap
- feature domainTensorMap encode(List<? extends SequenceExample<?>> batch, ImmutableFeatureMap featureMap)
batch
- a batch of examples.featureMap
- feature domainCopyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.