A training sampler that adds scheduled sampling directly to outputs.
sampler_scheduled_output_training(
sampling_probability,
time_major = FALSE,
seed = NULL,
next_inputs_fn = NULL
)
A float32 scalar tensor: the probability of sampling from the outputs instead of reading directly from the inputs.
bool. Whether the tensors in inputs are time major. If False (default), they are assumed to be batch major.
The sampling seed.
(Optional) callable to apply to the RNN outputs to create the next input when sampling. If None (default), the RNN outputs will be used as the next inputs.
FALSE for sample_ids where no sampling took place; TRUE elsewhere.