摘要: module A module is basically a bunch of related code saved in a** file** with the extension** .py**. package A package is basically a directory of a c 阅读全文
posted @ 2023-12-01 11:52 shendawei 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 查看Conda Pack https://www.anaconda.com/blog/moving-conda-environments 阅读全文
posted @ 2023-06-21 10:14 shendawei 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Process Pools 1. apply (func[, args[, kwds]]) 只能执行1次(只能输入一次参数) 支持多个参数(参数统一为元祖类型) 阻塞(只能等待这行代码执行完,才会执行下面的代码) 返回结果为函数执行结果 2. apply_async (func[, args[, k 阅读全文
posted @ 2023-06-16 17:39 shendawei 阅读(10) 评论(0) 推荐(0) 编辑
摘要: https://github.com/pytorch/pytorch/issues/13246#issuecomment-905703662 阅读全文
posted @ 2023-06-13 16:40 shendawei 阅读(3) 评论(0) 推荐(0) 编辑
摘要: # refcount - (reference count), a mechanism used by the Python interpreter to manage the memory of objects. - When the reference count of an object re 阅读全文
posted @ 2023-06-13 16:36 shendawei 阅读(39) 评论(0) 推荐(0) 编辑
摘要: ``` python from torch.utils.data import Dataset, DataLoader ``` # 1. Dataset There are 2 different types of datasets: ## 1.1 map-style datasets (most 阅读全文
posted @ 2023-06-12 18:26 shendawei 阅读(1) 评论(0) 推荐(0) 编辑
摘要: RSS: "Resident Set Size"(常驻集大小)表示进程当前在物理内存中实际占用的空间大小, 以KB为单位。 Note:由于Linux使用页面(page)作为内存管理的基本单位,因此RSS的值通常是页面大小(通常为4KB)的倍数。因此,top命令中显示的RSS值可能略微大于实际的内存使 阅读全文
posted @ 2023-05-11 15:10 shendawei 阅读(14) 评论(0) 推荐(0) 编辑
摘要: # 1. Change local message git commit --amend -m "New commit message" # 2. Push the change to remote git push --force-with-lease # 3. Other collaborato 阅读全文
posted @ 2023-04-17 17:29 shendawei 阅读(15) 评论(0) 推荐(0) 编辑
摘要: Exclude files git df branch1 branch2 --name-only ':!kernel/include' 阅读全文
posted @ 2023-04-16 11:46 shendawei 阅读(3) 评论(0) 推荐(0) 编辑
摘要: # 1. Delete local branch git branch -d your-branch # -d: Safe option that will only delete the branch if it has already been merged. # Or git branch - 阅读全文
posted @ 2023-04-16 10:52 shendawei 阅读(20) 评论(0) 推荐(0) 编辑