VocabInfo
tf.estimator.VocabInfo
tf.train.VocabInfo
Defined in tensorflow/python/training/warm_starting_util.py
.
Vocabulary information for warm-starting.
See WarmStartSettings for examples of using VocabInfo to warm-start.
new_vocab
: [Required] A path to the new vocabulary file (used with the model to be trained).new_vocab_size
: [Required] An integer indicating how many entries of the new vocabulary will used in training.num_oov_buckets
: [Required] An integer indicating how many OOV buckets are associated with the vocabulary.old_vocab
: [Required] A path to the old vocabulary file (used with the checkpoint to be warm-started from).old_vocab_size
: [Optional] An integer indicating how many entries of the old vocabulary were used in the creation of the checkpoint. If not provided, the entire old vocabulary will be used.backup_initializer
: [Optional] A variable initializer used for variables corresponding to new vocabulary entries and OOV. If not provided, these entries will be zero-initialized.backup_initializer
Alias for field number 5
new_vocab
Alias for field number 0
new_vocab_size
Alias for field number 1
num_oov_buckets
Alias for field number 2
old_vocab
Alias for field number 3
old_vocab_size
Alias for field number 4
__new__
@staticmethod __new__( cls, new_vocab, new_vocab_size, num_oov_buckets, old_vocab, old_vocab_size=-1, backup_initializer=None )
Create new instance of VocabInfo(new_vocab, new_vocab_size, num_oov_buckets, old_vocab, old_vocab_size, backup_initializer)
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/estimator/VocabInfo