-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local variable 'bias_shift' referenced before assignment #178
Comments
Please check if you have enable bias for conv layers. Conv layers must have bias for successful conversion, it is a requirement for the backend. |
As Keras is in format of NHWC, nnom seems directly do conv2d and pad and maxpool at the first two dimensions, make the computation become totally wrong. |
I only tested it in keras/tf2. ONNX model are not tested. Looks like the data format is an issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem I encountered when I tried to convert h5 model(which convert from onnx model) to weights.h. Its reason seems to be there:
While my layer's name like
LAYER_0
. Is it right?The question is why the layer is judged on its
name
attribute instead oftype()
(just as a beginner)? And is there a good way to fix it?The text was updated successfully, but these errors were encountered: