2025年2月6日星期四

pytorch

1、pytorch


3、log

You are using a CUDA device ('NVIDIA GeForce RTX 3060 Laptop GPU') that has Tensor Cores. 
To properly utilize them, you should set `torch.set_float32_matmul_precision('medium' | 'high')` which will trade-off precision for performance. 
For more details, read https://pytorch.org/docs/stable/generated/torch.set_float32_matmul_precision.html#torch.set_float32_matmul_precision

使用python -m venv生成的虚拟环境,文件目录出错

 windows中,

通过 python -m venv生成的虚拟环境,

在dos窗口中,通过activate.bat激活虚拟环境,

执行虚拟环境scripts目录中的python.exe,

实际执行的却是C:\Users\username\AppData\Local\Programs\Python\中的python


这可能是pytorch的DataLoader,当num_workers大于0时,出错的原因。

Add if __name__ == ‘__main__’ When Spawning Processes

2025年2月5日星期三

wsl ext4.vhdx ERROR_FILE_NOT_FOUND

 https://github.com/microsoft/WSL/issues/10032


>wsl --unregister ubuntu

followed by

>wsl --install

fixes the problem for ubuntu atleast

windows终端