[ci, 3.13] update tensorboard version for 3.13 to fix broken tests (#141572)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/141572
Approved by: https://github.com/StrongerXi, https://github.com/atalman
ghstack dependencies: #141409, #142003
This commit is contained in:
William Wen
2024-12-04 00:02:45 -08:00
committed by PyTorch MergeBot
parent c93dd531d3
commit 9459952175
4 changed files with 14 additions and 2 deletions

View File

@ -1,7 +1,9 @@
# Owner(s): ["oncall: r2p"]
import sys
import tempfile
import time
import unittest
from datetime import datetime, timedelta
@ -129,6 +131,10 @@ class TestMonitorTensorboard(TestCase):
for temp_dir in self.temp_dirs:
temp_dir.cleanup()
@unittest.skipIf(
sys.version_info >= (3, 13),
"numpy failure, likely caused by old tensorboard version",
)
def test_event_handler(self):
with self.create_summary_writer() as w:
handle = register_event_handler(TensorboardEventHandler(w))