Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

RNN cell with list of symbol as input #5114

Closed
Godricly opened this issue Feb 23, 2017 · 1 comment
Closed

RNN cell with list of symbol as input #5114

Godricly opened this issue Feb 23, 2017 · 1 comment

Comments

@Godricly
Copy link
Contributor

@piiswrong
when using list of symbol as input, the layer is assumed as TNC order, While the default layout input is NTC. It is not properly parsed for list input case.

assert len(inputs) == length
inputs = [symbol.expand_dims(i, axis=0) for i in inputs]
inputs = symbol.Concat(inputs, dim=0)
if begin_state is None:
begin_state = self.begin_state()

Also I think the Concat is not right here. which should be:

inputs = symbol.Concat(*inputs, dim=0)
@Godricly
Copy link
Contributor Author

problem fixed with #5166

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant