But changing the definition of forward would constrain you, as you might not be able to use functions that assume forward takes 1 input like the tensorboardX library.
Maybe you could just pass a dictionary of your inputs.