Python
文章平均质量分 59
Python
snoopy_21
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【PyTorch】Caught RuntimeError in DataLoader worker process 0和invalid argument 0: Sizes of tensors mus
报错如下: Traceback (most recent call last): File "/home/jiang/miniconda3/envs/Net/lib/python3.6/site-packages/tqdm/std.py", line 1178, in __iter__ for obj in iterable: File "/home/jiang/miniconda3/envs/Net/lib/python3.6/site-packages/torch/utils/data/原创 2021-07-03 19:50:57 · 30748 阅读 · 5 评论 -
【随记】python安装包的时候conda install和pip install有什么区别?
conda conda ≈ pip(python包管理) + virtualenv(虚拟环境) + 非python依赖包管理 虚拟环境 这里以创建名为EnvName的虚拟环境为例,python版本为3.6 创建: 创建conda create -n EnvName python=3.6 手动激活环境conda activate EnvName 移除: 手动退出环境conda deactivate 删除conda remove -n EnvName --all 非python依赖包管理 conda是一个跨平台原创 2020-09-05 18:13:43 · 1848 阅读 · 0 评论 -
numpy、pytorch、tensorflow中的Broadcasting快速理解
Broadcasting伪代码 Inputs: array A with m dimensions; array B with n dimensions p = max(m, n) if m < p: left-pad A's shape with 1s until it also has p dimensions else if n < p: left-pad B's shape with 1s until is also has p dimensions result_dim原创 2020-08-02 23:36:23 · 276 阅读 · 0 评论
分享