(self, batch_size, SOS_ID=SOS_ID)
return x
Get Variable of <SOS> Index (batch_size)
Get Variable of <SOS> Index (batch_size)
Get Variable of <SOS > Index ( batch_size )
def init_token(self, batch_size, SOS_ID=SOS_ID):
        """Get Variable of <SOS> Index (batch_size)"""
        x = to_var(torch.LongTensor([SOS_ID] * batch_size))
        return x
def init_token ( self , batch_size , SOS_ID = SOS_ID ) : x = to_var ( torch . LongTensor ( [ SOS_ID ] * batch_size ) ) return x