lmzjms's picture
Upload 1162 files
0b32ad6 verified
raw
history blame contribute delete
392 Bytes
from pathlib import Path
try:
# HACK: SummaryWriter must be imported at the begining or else it will lead to core dumped
# This is a known issue: https://github.com/pytorch/pytorch/issues/30651
from torch.utils.tensorboard.writer import SummaryWriter
except:
pass
with (Path(__file__).parent.resolve() / "version.txt").open() as file:
__version__ = file.read().strip()