摘要:
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 阅读全文
摘要:
查看Conda Pack https://www.anaconda.com/blog/moving-conda-environments 阅读全文
摘要:
Process Pools 1. apply (func[, args[, kwds]]) 只能执行1次(只能输入一次参数) 支持多个参数(参数统一为元祖类型) 阻塞(只能等待这行代码执行完,才会执行下面的代码) 返回结果为函数执行结果 2. apply_async (func[, args[, k 阅读全文
摘要:
https://github.com/pytorch/pytorch/issues/13246#issuecomment-905703662 阅读全文
摘要:
# refcount - (reference count), a mechanism used by the Python interpreter to manage the memory of objects. - When the reference count of an object re 阅读全文
摘要:
``` python from torch.utils.data import Dataset, DataLoader ``` # 1. Dataset There are 2 different types of datasets: ## 1.1 map-style datasets (most 阅读全文
摘要:
RSS: "Resident Set Size"(常驻集大小)表示进程当前在物理内存中实际占用的空间大小, 以KB为单位。 Note:由于Linux使用页面(page)作为内存管理的基本单位,因此RSS的值通常是页面大小(通常为4KB)的倍数。因此,top命令中显示的RSS值可能略微大于实际的内存使 阅读全文
摘要:
# 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 阅读全文