Add comment about relative import.

This file needs to adopt best practices for how to structure python
"main"'s, but I don't know how to do that yet.
pull/208/head
Sean Silva 2021-04-20 12:01:02 -07:00
parent 39d50ccf0d
commit b8ad0189ac
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,12 @@ from torch_mlir.torchscript.e2e_test.configs import (
)
# Import tests to register them in the global registry.
# TODO: Use a relative import.
# That requires invoking this file as a "package" though, which makes it
# not possible to just do `python main.py`. Instead, it requires something
# like `python -m tochscript.main` which is annoying because it can only
# be run from a specific directory.
# TODO: Find out best practices for python "main" files.
import basic
def main():