|
while not isinstance(var_input, Variable): |
|
var_input = var_input[0] |
is the culprit. Assumes that the first input is a variable or a sequence containing a variable in index 0 (recursively indexed).
Workaround is to pass a dummy variable as first input, as suggested in https://pytorch.slack.com/archives/C2077MFDL/p1497986173722359