コード例 #1
0
    def setUpClass(cls) -> None:
        cls.gen_c_path = os.path.abspath(gen_c.__file__)
        cls.output_path = os.path.join(os.path.dirname(cls.gen_c_path),
                                       "out_c")
        cls.is_exists = os.path.exists(cls.output_path)

        tests.remove_folder(cls.output_path)
コード例 #2
0
 def tearDown(self) -> None:
     tests.remove_folder(self.output_path)
コード例 #3
0
 def tearDown(cls) -> None:
     tests.remove_folder(cls.out_c_path)
     tests.remove_folder(cls.onnx_path)
     tests.remove_folder(os.path.join(cls.current_path, "model"))
コード例 #4
0
 def tearDownClass(cls) -> None:
     tests.remove_folder(cls.model_path)
コード例 #5
0
 def tearDownClass(cls) -> None:
     tests.remove_folder(cls.c_dir_new)
コード例 #6
0
 def tearDownClass(cls) -> None:
     tests.remove_folder(cls.output_path)
     pass
コード例 #7
0
 def tearDownClass(cls) -> None:
     tests.remove_folder(cls.out_c_path)
     tests.remove_folder(
         os.path.join(os.path.dirname(cls.module_file_dir),
                      "out_c_optimize"))
コード例 #8
0
 def tearDownClass(cls) -> None:
     if not cls.is_exists:
         tests.remove_folder(cls.output_path)
コード例 #9
0
 def tearDownClass(cls) -> None:
     tests.remove_folder(cls.out_c_path)
     tests.remove_folder(cls.onnx_folder)