Skip to content

Tensorflow2.x version compatible #25

Open
@vigneswaran-chandrasekaran

Description

Thank you for this great work :)

When I try to run the code, I am getting many errors because of new TensorFlow 2.x changes. So, I tried to use tf_upgrade_v2 script, but still, I get an error and not sure how to proceed,

More specifically: Substructure "type=LSTMStateTuple str=LSTMStateTuple(c=<tf.Tensor 'rnn/rnn_model/lstm_0/lstm_cell/add_1:0' shape=(64, 400) dtype=float32>, h=<tf.Tensor 'rnn/rnn_model/lstm_0/lstm_cell/mul_2:0' shape=(64, 400) dtype=float32>)" is a sequence, while substructure "type=ResourceVariable str=<tf.Variable 'model/rnn/Variable:0' shape=(64, 400) dtype=float32>" is not
Entire first structure:
[., (.,), [LSTMStateTuple(c=., h=.), LSTMStateTuple(c=., h=.), LSTMStateTuple(c=., h=.), ., ., .]]
Entire second structure:
[., (.,), [., ., ., ., ., ., ., ., .]]

It would be great if anyone give comments to reproduce this work in Tensorflow2.x

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions