How to correct TypeError: 'module' object is not callable

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_43981428/article/details/102738603

During the implementation of the dialogue system, there has been an error as shown in
Here Insert Picture Description
the following part of the code for the error:
with tf.variable_scope("encoder"):encoder_cell = tf.contrib.rnn.EmbeddingWrapper(cell, embedding_classes=self.vocab_size,embedding_size=num_units)self.encoder_outputs, self.encoder_state = tf.contrib.rnn(encoder_cell, self.inputs,dtype=tf.float32,sequence_length=self.early_stops)
how to help solve?

Guess you like

Origin blog.csdn.net/weixin_43981428/article/details/102738603