1 2 3 4 5 ··· 44 下一页
摘要: 直接处理 import sys # 检查参数数量 if len(sys.argv) < 2: print("Usage: python script.py arg1 [arg2 ...]") sys.exit(1) # 第一个参数是脚本自身名称 script_name = sys.argv[0] # 阅读全文
posted @ 2025-02-08 02:14 Undefined443 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 基本组件 卷积 相乘,再求和。 \[C_{x,y} = \sum A_{i,j,k} \times B_{i,j,k} \] 一维卷积 二维卷积 参见: Convolutions Over Volume | Coursera But what is a convolution? | 3Blue1Br 阅读全文
posted @ 2025-01-27 01:29 Undefined443 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 对于 \(n\) 个数,\(x_1, x_2, \ldots, x_n\),可以计算 \(\text{softmax}\): \[\text{softmax}(x_i)=\frac{e^{x_i}}{\sum_{j=1}^{n}e^{x_j}} \] 阅读全文
posted @ 2025-01-24 01:04 Undefined443 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Self-Attention 参考:Self-Attention | Coursera 原始论文:Attention is all you need | Proceedings of the 31st International Conference on Neural Information Pr 阅读全文
posted @ 2025-01-23 23:48 Undefined443 阅读(2) 评论(0) 推荐(0) 编辑
摘要: PyTorch 中的 DDP 和 Elastic 是 PyTorch 中用于支持分布式训练的两个相关组件,在分布式训练中常常结合使用。 DDP 用于在多个 GPU 上实现数据并行的分布式训练。其在每个 GPU 上运行模型的一个副本,并独立进行前向和后向传播。梯度在每次反向传播后进行同步,从而确保所有 阅读全文
posted @ 2025-01-21 17:26 Undefined443 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Caddy 是一个可以全自动配置 HTTPS 加密的 Web 服务器。其具有配置简单易上手的特点,适合用于个人博客。 部署网站 安装 Caddy sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https 阅读全文
posted @ 2025-01-20 17:43 Undefined443 阅读(1) 评论(0) 推荐(0) 编辑
摘要: config: theme: mc look: classic layout: dagre flowchart LR Input["<h4>输入文件:</h4><br><code>Hello World<br>Hello Python<br>Python Java<br>Java World</co 阅读全文
posted @ 2025-01-20 02:12 Undefined443 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Amazon EMR (Elastic MapReduce) 是一种托管的大数据处理服务,使用户能够在云上便捷、快速地运行和管理大规模数据分析和处理任务。 我们可以在 EMR 集群上安装各种分布式程序。这里我们将介绍如何安装最基础的 Hadoop 分布式计算框架并在其上运行一个 MapReduce 阅读全文
posted @ 2025-01-18 19:01 Undefined443 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 今天尝试修改 AlmaLinux(RHEL 系)默认 Shell 时遇到错误: $ chsh -s /usr/bin/zsh -bash: chsh: command not found 解决方法:安装 util-linux-user 库(注意不是 util-linux 库) sudo dnf in 阅读全文
posted @ 2025-01-17 15:35 Undefined443 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 简单理解,jQuery 就是别人写好的 JavaScript 文件。它提供了一个名为 $ 的函数。 <!DOCTYPE html> <html> <head> <!-- 通过 CDN 引入 jQuery --> <script src="https://code.jquery.com/jquery- 阅读全文
posted @ 2025-01-14 21:16 Undefined443 阅读(3) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 44 下一页