コード例 #1
0
ファイル: bisection.py プロジェクト: xuzhao9/benchmark
 def prep(self) -> bool:
     repo_origin_url = gitutils.get_git_origin(self.srcpath)
     if not repo_origin_url == TORCH_GITREPO:
         print(
             f"WARNING: Unmatched repo origin url: {repo_origin_url} with standard {TORCH_GITREPO}"
         )
     self.update_repos()
     return True
コード例 #2
0
 def prep(self) -> bool:
     # Verify the code in srcpath is pytorch/benchmark
     repo_origin_url = gitutils.get_git_origin(self.srcpath)
     if not repo_origin_url == TORCHBENCH_GITREPO:
         print(f"WARNING: Unmatched repo origin url: {repo_origin_url} with standard {TORCHBENCH_GITREPO}")
     # get list of models
     self.models = [ model for model in os.listdir(os.path.join(self.srcpath, "torchbenchmark", "models"))
                     if os.path.isdir(os.path.join(self.srcpath, "torchbenchmark", "models", model)) ]
     return True