ZhengDeQuan / MultiPass

百度官方没有公布Vnet的代码这个是根据论文复现的Vnet基于tensorflow实现
Apache License 2.0
4 stars 2 forks source link

NoneType error in encode #1

Open AlexYoung757 opened 5 years ago

AlexYoung757 commented 5 years ago

emm, thank you for your share. here is an error. when i run this code. in decode part, such as follows: shapes = self.p_char_emb.get_shape().as_list() _, self.sep_p_char_encodes = rnn( 'bi-gru', inputs=tf.reshape(self.p_char_emb, (shapes[0] * shapes[1], shapes[2], -1)), length=tf.reshape(self.p_char_length, (shapes[0] * shapes[1],)), hidden_size=self.char_hidden_size ) the shapes return [None,None,None,300], so 'shapes[0] * shapes[1]' is not fit. what do u think

wind91725 commented 5 years ago

I also encountered this problem.