Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate_lyric项目中target和logits形状 #31

Closed
BellaZbl opened this issue Nov 21, 2018 · 0 comments
Closed

generate_lyric项目中target和logits形状 #31

BellaZbl opened this issue Nov 21, 2018 · 0 comments

Comments

@BellaZbl
Copy link

  1. cell = tf.contrib.rnn.MultiRNNCell([lstm]) 这里是只有一层rnn吗?

  2. logits = tf.contrib.layers.fully_connected(outputs, vocab_size, activation_fn=None)
    这里logits的shape是 batch_size,seq_len,vocab_size可是target是batch_size,seq_len,embed_dim 请问这两个怎么求损失?

@BellaZbl BellaZbl changed the title target和logits形状 generate_lyric项目中target和logits形状 Nov 21, 2018
@BellaZbl BellaZbl reopened this Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant