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

RHNCell throws ValueError during application #18

Open
tastyminerals opened this issue Apr 26, 2018 · 0 comments
Open

RHNCell throws ValueError during application #18

tastyminerals opened this issue Apr 26, 2018 · 0 comments

Comments

@tastyminerals
Copy link

tastyminerals commented Apr 26, 2018

When I attempt to use RHNCell it throws:

ValueError: Dimensions must be equal, but are 50 and 100 for 'Train/Model/recurrent_loop/recurrent_loop/multi_rnn_cell/cell_0/h_0/mul' (op: 'Mul') with input shapes: [32,50], [100]

The cell is initialized the following way.

hidden_size = 100
input_size=50
cell = RHNCell(hidden_size, input_size, is_training=True, depth=3, forget_bias=None)

and applied in a loop:

for batch in batches:
    # batch = [32, 50]
    output, state = cell(batch, state)

Both LSTMCell and GRUCell work with the above input and hidden sizes. Why doesn't RHNCell?
Setting the input_size to 100 throws another error: ValueError: Linear is expecting 2D arguments: [[32, 100], [100]].

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