Hi,
I guess this module should be used in a for loop depending on what you need.
For example, to just get the output for each input:
def forward_inputs(inputs):
    hidden = mod.init_hidden()
    outputs = []    
    for inp in inputs:
        out, hidden = mod(inp, hidden)
        outputs.append(out)
    return outputs