Skip to content

Commit

Permalink
reset tf default graph
Browse files Browse the repository at this point in the history
  • Loading branch information
ricwo committed Jun 12, 2018
1 parent 10c3ea5 commit af177c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rasa_nlu/classifiers/embedding_intent_classifier.py
Expand Up @@ -500,6 +500,7 @@ def train(self, training_data, cfg=None, **kwargs):
self.num_neg = min(self.num_neg,
self.encoded_all_intents.shape[0] - 1)

tf.reset_default_graph()
self.graph = tf.Graph()
with self.graph.as_default():
self.a_in = tf.placeholder(tf.float32, (None, X.shape[-1]),
Expand Down

0 comments on commit af177c4

Please sign in to comment.