Type TrainingHelper
Namespace tensorflow.contrib.seq2seq
Parent PythonObjectContainer
Interfaces Helper, ITrainingHelper
A helper for use during training. Only reads inputs. Returned sample_ids are the argmax of the RNN output logits.
Methods
Properties
Public instance methods
object next_inputs(IGraphNodeBase time, IEnumerable<IGraphNodeBase> outputs, IGraphNodeBase state, ValueTuple<PythonClassContainer, PythonClassContainer> name, IDictionary<string, object> unused_kwargs)
next_inputs_fn for TrainingHelper.
object next_inputs(IGraphNodeBase time, IEnumerable<IGraphNodeBase> outputs, IGraphNodeBase state, IGraphNodeBase name, IDictionary<string, object> unused_kwargs)
next_inputs_fn for TrainingHelper.
object next_inputs(IGraphNodeBase time, IGraphNodeBase outputs, IGraphNodeBase state, ValueTuple<PythonClassContainer, PythonClassContainer> name, IDictionary<string, object> unused_kwargs)
next_inputs_fn for TrainingHelper.
object next_inputs(IGraphNodeBase time, IGraphNodeBase outputs, IGraphNodeBase state, IGraphNodeBase name, IDictionary<string, object> unused_kwargs)
next_inputs_fn for TrainingHelper.
object next_inputs_dyn(object time, object outputs, object state, object name, IDictionary<string, object> unused_kwargs)
next_inputs_fn for TrainingHelper.
object sample(IGraphNodeBase time, IEnumerable<IGraphNodeBase> outputs, string name, IDictionary<string, object> unused_kwargs)
Returns `sample_ids`.
object sample(IGraphNodeBase time, IGraphNodeBase outputs, string name, IDictionary<string, object> unused_kwargs)
Returns `sample_ids`.
object sample_dyn(object time, object outputs, object name, IDictionary<string, object> unused_kwargs)
Returns `sample_ids`.
Public properties
Tensor batch_size get;
Batch size of tensor returned by `sample`. Returns a scalar int32 tensor.
object batch_size_dyn get;
Batch size of tensor returned by `sample`. Returns a scalar int32 tensor.
Tensor inputs get;
object inputs_dyn get;
object PythonObject get;
DType sample_ids_dtype get;
DType of tensor returned by `sample`. Returns a DType.
object sample_ids_dtype_dyn get;
DType of tensor returned by `sample`. Returns a DType.
TensorShape sample_ids_shape get;
Shape of tensor returned by `sample`, excluding the batch dimension. Returns a `TensorShape`.
object sample_ids_shape_dyn get;
Shape of tensor returned by `sample`, excluding the batch dimension. Returns a `TensorShape`.