Skip to content

nngraph: Got 3 inputs instead of 5 #6

@alex3s

Description

@alex3s

Hi,
Training runs fine, but sampling gives the following error:

th ./sample.lua cv/lm_lstm_epoch7.01_1.3587.t7

nngraph/gmodule.lua:362: Got 3 inputs instead of 5

stack traceback:
	[C]: in function 'error'
	/home/user/torch/install/share/lua/5.1/nngraph/gmodule.lua:362: in function 'forward'
	./sample.lua:173: in main chunk
	[C]: in function 'dofile'
	/home/user/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
	[C]: at 0x00406670

char-rnn on the same machine doesn't give error.
Updated the nngraph package:
luarocks install nngraph
The issue remains. Thank you for looking into it and for sharing.

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