We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
output_dir
overwrite
This assert only lets in the following combination of parameter values:
overwrite=False
onnx-pytorch/onnx_pytorch/code_gen.py
Lines 317 to 319 in 2902b4d
From the context is seems that other combinations of parameter values should also be valid, such as:
overwrite=True
I think the fix is to change the clause to:
assert not os.path.exists( output_dir ) or overwrite, f"{output_dir} is not empty and overwrite is not True."
The text was updated successfully, but these errors were encountered:
@Aivean Sorry for late reply. Some PR will resolve this issue.
Sorry, something went wrong.
code_gen.py
No branches or pull requests
This assert only lets in the following combination of parameter values:
output_dir
must exist andoverwrite=False
onnx-pytorch/onnx_pytorch/code_gen.py
Lines 317 to 319 in 2902b4d
From the context is seems that other combinations of parameter values should also be valid, such as:
output_dir
doesn't exist anoverwrite
is whateveroutput_dir
exist andoverwrite=True
I think the fix is to change the clause to:
The text was updated successfully, but these errors were encountered: