public interface SequenceExampleTransformer<T extends Output<T>> extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
Modifier and Type | Method and Description |
---|---|
Map<String,org.tensorflow.Tensor<?>> |
encode(List<SequenceExample<T>> batch,
ImmutableFeatureMap featureMap)
Encodes a batch of examples as a feed dict.
|
Map<String,org.tensorflow.Tensor<?>> |
encode(SequenceExample<T> example,
ImmutableFeatureMap featureMap)
Encodes an example as a feed dict.
|
Map<String,org.tensorflow.Tensor<?>> encode(SequenceExample<T> example, ImmutableFeatureMap featureMap)
example
- the input examplefeatureMap
- feature domainMap<String,org.tensorflow.Tensor<?>> encode(List<SequenceExample<T>> batch, ImmutableFeatureMap featureMap)
batch
- a batch of examples.featureMap
- feature domainCopyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.