Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
try:
tf.nn.seq2seq = tf.contrib.legacy_seq2seq
tf.nn.rnn_cell = tf.contrib.rnn
tf.nn.rnn_cell.GRUCell = tf.contrib.rnn.GRUCell
tf.nn.rnn = tf.contrib.rnn.static_rnn
# https://github.com/tensorflow/tensorflow/issues/7032
tf.sub = tf.subtract
# https://stackoverflow.com/questions/47296969/valueerror-variable-rnn-basic-rnn-cell-kernel-already-exists-disallowed-did-y
tf.reset_default_graph()
print("TensorFlow's version : 1.0 (or more)")
except:
print("TensorFlow's version : 0.12")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.