Explorar o código

fixed rnn_cell import error

rnn, rnn_cell module is shifted to tensorflow.python.ops
meagmohit %!s(int64=9) %!d(string=hai) anos
pai
achega
773840ded4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/3_NeuralNetworks/recurrent_network.py

+ 1 - 1
examples/3_NeuralNetworks/recurrent_network.py

@@ -8,7 +8,7 @@ Project: https://github.com/aymericdamien/TensorFlow-Examples/
 '''
 
 import tensorflow as tf
-from tensorflow.models.rnn import rnn, rnn_cell
+from tensorflow.python.ops import rnn, rnn_cell
 import numpy as np
 
 # Import MINST data