Skip to content

q3_gru.py add_prediction_op() 中dynamic_rnn应该取output作为值而不是state吧? #11

Open

Description

@dulm

outputs, state = tf.nn.dynamic_rnn(cell, x, dtype=tf.float32)
output = outputs[:, -1]
preds = tf.sigmoid(output)

虽然gru中两者是等同的

Activity

  1. DingkunLiu commented on Jun 24, 2018

    @DingkunLiu
    Contributor

    Vanilla RNN中也是这样的,这里应该是不考虑LSTM的。

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

Metadata

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