forked from lightvector/KataGo
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance CoreML Model Compilation Process
- Refined Functionality: Updated private functions to encapsulate specific tasks, improving readability and modularity. - getApplicationSupportURL(): Simplified directory access with a more direct approach. - getDigest(modelURL:): Introduced a new function to encapsulate SHA256 digest computation. - checkShouldCompileModel(...): Revised logic for checking model compilation necessity, including digest comparison and resource reachability. - compileAndSaveModel(...): Streamlined model compilation and saving process, enhancing code structure. - loadModel(...): Optimized model loading with configuration settings. - Code Organization: The refactoring focuses on breaking down the compileMLModel function into smaller, more manageable functions, each responsible for a distinct part of the process. This approach enhances the maintainability and scalability of the code. - Improved Logging: Enhanced logging throughout the process for better traceability and debugging.
- Loading branch information
1 parent
0c25374
commit 6abd89b
Showing
1 changed file
with
93 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters