Closed tdp2110 closed 3 years ago
Just checked in the fix, please pull keras2onnx master (see Readme) and retry.
Thanks for that! That fixes the UnboundLocalError
, but I quickly hit another error:
div_node = oopb.apply_div(diff_output + delta_cast,
TypeError: can only concatenate list (not "str") to list
I hacked this by changing line 1198 from
delta_cast = delta.name
to
delta_cast = [delta.name]
and I was able to get my model to convert (to something!). Not sure if this is correct though 😃
Good catch, it is a good fix. I just checked in the fix you mentioned, please pull keras2onnx master again. Thank you!
Hello!
Thanks again for the super useful library! I was just using your tool and hit the following error:
We can see the source
If
onnx_type
is not in[oopb.int32, oopb.int64]
, then we never assign todiff_output
which is unconditionally used after the if-statement.Maybe this should be a different kind of error which gives meaning to the user, or maybe it shouldn't be an error at all. I don't know!