You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable program_test in CI and fix flaky LoadFromMutableSegment test (#16709)
Enable program_test target in CMakeLists.txt which was previously
disabled (TODO T191569140).
Fix the LoadFromMutableSegment test which was fragile due to checking
for a hardcoded byte value (232) that varies across platforms and
PyTorch versions. The test now:
1. Loads the full 36-byte weight tensor instead of a single byte
2. Verifies data consistency by comparing two loads with memcmp
3. Checks that loaded data is non-trivial (contains non-zero bytes)
4. Validates source immutability by mutating local buffer and
reloading to verify original data is preserved
This maintains the test's purpose of validating mutable segment
loading while being robust across different environments.
0 commit comments