-
Notifications
You must be signed in to change notification settings - Fork 74
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
Implementation of strict mode #145
Labels
Comments
I close because I now know how to address this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Type
Others
onnx2tf version number
1.7.x
onnx version number
1.13.0
tensorflow version number
2.10.0
Download URL for ONNX
N/A
Parameter Replacement JSON
N/A
Description
Background
Since the internal processing has already implemented a number of fairly complex workarounds to avoid conversion errors, we have not dared to implement a correction process for accuracy errors at this time in order not to further increase the complexity of the logic. Instead, I have implemented a mechanism whereby the user visually identifies which operation's channel transpositions cause problems, and the user changes the behavior of the tool himself.
However, I cannot overlook the situation where accuracy errors remain despite successful model transformations, and I hope to eradicate them in the future. The work to change the behavior of the tool by the users themselves with the users' visibility of the problem areas is very costly.
Since the internal processing mechanism needs to be significantly revised, we intend to implement many additional test modifications gradually in minor version upgrades to the extent that they do not affect the existing processing.
Idea
onnx2tf/onnx2tf/utils/common_functions.py
Lines 2937 to 3062 in 33e65dc
Transpose
OP is excluded from the search because the value to be compared does not change.Constant
andConstantOfShape
.pre_process_transpose_perm
is used to check all combinations that pre-transpose the input tensor to the corresponding OP.parameter_replacement.json
, omit processing.MatMul
.Softmax
, attempt correction in the following order: attribute value change first, then tensor transposition.The text was updated successfully, but these errors were encountered: