Git Product home page Git Product logo

Comments (6)

aymericdamien avatar aymericdamien commented on April 28, 2024 1

The old version of Tensorflow didn't returned the states, so output[-1] is fine (see https://github.com/tensorflow/tensorflow/blob/r0.7/tensorflow/python/ops/rnn.py#L323).
However in newer version, it returns a tuple instead, so as you said, you need to change
outputs = rnn.bidirectionnal_rnn(... by outputs, _, _ = rnn.bidirectionnal_rnn(...

from tensorflow-examples.

coderLong avatar coderLong commented on April 28, 2024 1

I am also interested in the problem. maybe base on experience? @zandaqo

from tensorflow-examples.

aymericdamien avatar aymericdamien commented on April 28, 2024 1

There is no particular reason, it depends on your data. A recommendation is to use multiple of 32 as it may speedup a little the computation when using float32.

from tensorflow-examples.

zandaqo avatar zandaqo commented on April 28, 2024

@aymericdamien Speaking of BDLSTM example, is there any particular reason for n_hidden to be 128? I'm hesitant to open an issue for this question since it's likely a triviality, but the number puzzles me.

from tensorflow-examples.

jeffzhengye avatar jeffzhengye commented on April 28, 2024

https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/3_NeuralNetworks/bidirectional_rnn.py

ImportError: This module is deprecated. Use tf.nn.rnn_* instead.

from tensorflow-examples.

aymericdamien avatar aymericdamien commented on April 28, 2024

it has been fix

from tensorflow-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.