Skip to content

Add version header system and configurable input channels#5

Merged
ChinChangYang merged 2 commits intomasterfrom
refactor/version
Jan 19, 2026
Merged

Add version header system and configurable input channels#5
ChinChangYang merged 2 commits intomasterfrom
refactor/version

Conversation

@ChinChangYang
Copy link
Owner

@ChinChangYang ChinChangYang commented Jan 18, 2026

Summary

  • Add CMake-generated version header (Version.hpp.in) to eliminate hardcoded version strings
  • Make input channel counts configurable instead of hardcoded values (22 spatial, 19 global)
  • Replace manual version strings with VERSION macro throughout codebase
  • Update copyright attribution in test files

Test plan

  • Verify CMake generates Version.hpp correctly in build directory
  • Build project and confirm version is displayed correctly in katago2coreml --help
  • Run existing unit tests to ensure configurable input channels work correctly
  • Verify Core ML model metadata contains correct version string

🤖 Generated with Claude Code

ChinChangYang and others added 2 commits January 18, 2026 21:07
Update CMakeLists.txt to match version strings in KataGoConverter.hpp
and CoreMLSerializer.cpp for consistency.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add Version.hpp.in template with CMake configuration
- Make input channel counts configurable (num_input_channels, num_input_global_channels)
- Replace hardcoded version strings with VERSION macro
- Update copyright in BatchSizeTests.cpp

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ChinChangYang ChinChangYang merged commit 7946f0d into master Jan 19, 2026
1 check passed
@ChinChangYang ChinChangYang deleted the refactor/version branch January 19, 2026 00:07
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.

1 participant