when I run python sample.py --source finaltest.txt --state search_state.pkl search_model.npz --trans out.txt --beam-search, there is a error like: theano.compile.function_module.UnusedInputError: theano.function was asked to create a function computing outputs given certain inputs, but the provided input variable at index 1 is not part of the computational graph needed to compute the outputs: step_num.
To make this error into a warning, you can pass the parameter on_unused_input='warn' to theano.function. To disable it completely, use on_unused_input='ignore'. Could someone give any suggestions? Thanks!
when I run python sample.py --source finaltest.txt --state search_state.pkl search_model.npz --trans out.txt --beam-search, there is a error like: theano.compile.function_module.UnusedInputError: theano.function was asked to create a function computing outputs given certain inputs, but the provided input variable at index 1 is not part of the computational graph needed to compute the outputs: step_num. To make this error into a warning, you can pass the parameter on_unused_input='warn' to theano.function. To disable it completely, use on_unused_input='ignore'. Could someone give any suggestions? Thanks!