Skip to content
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

[TVMC] Fix to check whether a path passed to --target is strictly a file #7663

Merged
merged 1 commit into from
Mar 15, 2021
Merged

[TVMC] Fix to check whether a path passed to --target is strictly a file #7663

merged 1 commit into from
Mar 15, 2021

Conversation

leandron
Copy link
Contributor

Fix to check whether a path passed to --target is strictly a file:

  • When we use file with --target, the validation in place was only checking whether it was a valid path. For the case in which the path is a directory, it causes a crash when tvmc then tries to open the path.
  • This fix moved the check to be strictly for files, not only a valid path

This was reported in #6302.

cc @mbaret @comaniac

 * When we use file with --target, the validation in place was only
   checking whether it was a valid path. For the case in which the
   path is a directory, it causes a crash when tvmc then tries to
   open the path.
 * This fix moved the check to be strictly for files, not only a valid
   path
Copy link
Contributor

@d-smirnov d-smirnov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@comaniac comaniac merged commit 5bd78b3 into apache:main Mar 15, 2021
@comaniac
Copy link
Contributor

Thanks @leandron @d-smirnov

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request May 6, 2021
…ile (apache#7663)

* When we use file with --target, the validation in place was only
   checking whether it was a valid path. For the case in which the
   path is a directory, it causes a crash when tvmc then tries to
   open the path.
 * This fix moved the check to be strictly for files, not only a valid
   path
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request May 11, 2021
…ile (apache#7663)

* When we use file with --target, the validation in place was only
   checking whether it was a valid path. For the case in which the
   path is a directory, it causes a crash when tvmc then tries to
   open the path.
 * This fix moved the check to be strictly for files, not only a valid
   path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants