-
Notifications
You must be signed in to change notification settings - Fork 297
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
Add SpaceToDepth in frontend #183
Conversation
@ruimashita looks like there's an additional CI error caused by SpaceToDepth:
|
@tjingrant But, It is hard for me to re-design frontend test. |
onnx_tf/frontends/frontend_v1.py
Outdated
transpose_unique_suffix = get_unique_suffix() | ||
space_to_depth_unique_suffix = get_unique_suffix() | ||
transpose_name = node.inputs[0] + "_T_" + transpose_unique_suffix | ||
space_to_depth_name = node.inputs[0] + "_STD_" + space_to_depth_unique_suffix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space_to_depth_name
should be based on transpose_name
Or we should clearify the input is transposed. _T_STD_
onnx_tf/frontends/frontend_v1.py
Outdated
before_transpose_node = helper.make_node( | ||
"Transpose", | ||
[node.inputs[0]], [transpose_name], | ||
perm=[0, 3, 1, 2]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe could use get_perm_from_formats
in backend.py
onnx_tf/frontends/frontend_v1.py
Outdated
after_transpose_node = helper.make_node( | ||
"Transpose", | ||
[space_to_depth_name], [node.name], | ||
perm=[0, 2, 3, 1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also here.
@fumihwh |
@ruimashita thanks, we haven't really started to deal with the data format issue in the frontend, sorry that you have to worry about that issue.. |
@tjingrant |
Add
SpaceToDepth
in frontend