From a339ecd3850bf3857fbffb98ba8cd27609e67356 Mon Sep 17 00:00:00 2001 From: Maxim Egorov Date: Sun, 19 Jun 2016 16:44:13 -0700 Subject: [PATCH] updated lstm import to work with tf v0.9 --- src/API/TfRnnCell.jl | 2 +- src/Models.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/API/TfRnnCell.jl b/src/API/TfRnnCell.jl index 283d53d..bffe518 100644 --- a/src/API/TfRnnCell.jl +++ b/src/API/TfRnnCell.jl @@ -3,7 +3,7 @@ module TfRnnCell using PyCall @pyimport tensorflow as tf -@pyimport tensorflow.models.rnn.rnn_cell as tf_rnn_cell +@pyimport tensorflow.python.ops.rnn_cell as tf_rnn_cell import TensorFlow.CoreTypes: * using TensorFlow.CoreTypes diff --git a/src/Models.jl b/src/Models.jl index 40f3465..6f5a4dd 100644 --- a/src/Models.jl +++ b/src/Models.jl @@ -4,7 +4,7 @@ module RNN using PyCall export LSTMCell -@pyimport tensorflow.models.rnn.rnn_cell as rnn_cell +@pyimport tensorflow.python.ops.rnn_cell as rnn_cell immutable LSTMCell x::PyObject