-
Notifications
You must be signed in to change notification settings - Fork 296
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
some problem about node.attr in frontend #65
Comments
Can you explain a bit more? |
UPDATED: |
So I am here.
|
It occurs to me that we need proper sanitization before passing it to |
Just leave |
Can you push your local (as I understand, your local is your proposed changes right?) as a work in progress PR so we can actually look at the code? |
I've created a PR #67 . I think it shows how do I handle above problems. There is a similar method in |
After
frontend.py
L149, I get suchnode.attr
asIf I just pass it to
make_node
inhelper.py
, I getSo I try to get value before
make_node
:node.attr = dict(map(lambda item: (item[0], get_attribute_value(item[1])), node.attr.items()))
,then I get
So there are two problems
frontend.py
can not handle attr structure (maybe changed?) -> can be fixed with my code aboveHasField
in protobuf3 will cause error) -> createget_attribute_value
inonnx-tensorflow
or makeonnx
get_attribute_value
let it can deal with both protobuf versionThe text was updated successfully, but these errors were encountered: