View source on GitHub |
Creates a serving_input_receiver_fn for SequenceExample
inputs.
tfr.data.build_sequence_example_serving_input_receiver_fn(
input_size,
context_feature_spec,
example_feature_spec,
default_batch_size=None
)
A string placeholder is used for inputs. Note that the context_feature_spec and example_feature_spec shouldn't contain weights, labels or training only features in general.
Returns | |
---|---|
A tf.estimator.export.ServingInputReceiver object, which packages the
placeholders and the resulting feature Tensors together.
|