class_docstr: Adapts T2TModel for sequential_scheduled_sampling().
class_docstr_tok: ["Adapts","T2TModel","for","sequential_scheduled_sampling","(",")","."]
code: def __init__(self, t2tmodel, features):
      self._t2tmodel = t2tmodel
      self._features = features
  
      hparams = self._t2tmodel.hparams
      assert hparams.mode == tf_estimator.ModeKeys.TRAIN, hparams.mode
  
file_path: tensor2tensor/tensor2tensor/utils/scheduled_sampling.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import copy
  from tensor2tensor.layers import common_layers
  import tensorflow.compat.v1
  from tensorflow.compat.v1 import estimator
  from tensorflow.python.ops import inplace_ops
label_desc: Use image node_id 1 to create a new ScheduledSamplingAdapter object from inherited base classes: object with example: obj = ScheduledSamplingAdapter(t2tmodel, features)