Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#58·PyTorch_Tutorial

计算相对路径的问题

Author: xiaocerCreated May 16, 2023Updated May 16, 2023
pro_dir = os.getcwd()
train_txt_path = os.path.join(pro_dir, "Data", "train.txt")

这样更方便

Source: TingsongYu/PyTorch_Tutorial

View original on GitHubView discussion on GitHub