tensor2tensor icon indicating copy to clipboard operation
tensor2tensor copied to clipboard

how to generate multiple samples for the same input in a generate task

Open liugeng223 opened this issue 5 years ago • 1 comments

Description

I've trained a model to rewrite a sentence to different way. every time i predict a sentence the model give me the same answer. is it possible to generate multiple samples? for example: inputs: i am happy output1: i am cheerful output2: i am pleasant output3: i'm so happly

thanks

liugeng223 avatar Jul 13 '20 06:07 liugeng223

--decode_hparams="beam_size=4,alpha=0.1,return_beams=True"

terminator123 avatar Oct 21 '20 09:10 terminator123