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

Error in using 2 outputs #48

Open
raj1052 opened this issue Mar 15, 2021 · 0 comments
Open

Error in using 2 outputs #48

raj1052 opened this issue Mar 15, 2021 · 0 comments

Comments

@raj1052
Copy link

raj1052 commented Mar 15, 2021

This implementation is for 50 input and 1 output. I'm trying to use it with 2 output and it gives an error as follows.

File "test.py", line 43, in example_0
loss = lstm_net.y_list_is(y_list, ToyLossLayer)
File "lstm.py", line 155, in y_list_is
diff_h = loss_layer.bottom_diff(self.lstm_node_list[idx].state.h, y_list[idx])
File "test.py", line 17, in bottom_diff
diff[0] = 2 * (pred[0] - label)
ValueError: setting an array element with a sequence.

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