会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
15375357604
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
10
下一页
2023年8月22日
python 多线程
摘要: 在python中,I/O密集型任务可以用多线程的方式来实现(threading库);然而,对于计算密集型任务,由于python中全局锁GIL的存在,多线程并不能起到一个加速的作用。所以此时,一般使用多进程的方式实现(multiprocessing库)。 多线程 threading: 一个人有与异性聊
阅读全文
posted @ 2023-08-22 10:58 15375357604
阅读(35)
评论(0)
推荐(0)
2023年8月21日
leetcode
摘要: # 最长回文子串 class Solution: def longestPalindrome(self, s: str) -> str: return self.manacher(s) @staticmethod def manacher(s: str) -> str: # 如果s是单字符的字符串,
阅读全文
posted @ 2023-08-21 16:46 15375357604
阅读(11)
评论(0)
推荐(0)
docker
摘要: 编写Dockerfile 将Dcokerfile文件置于项目根目录下,文件内容如下 FROM python:3.7 WORKDIR ./docker_demo ADD . . RUN pip install -r requirements.txt CMD ["python", "./src/main
阅读全文
posted @ 2023-08-21 14:12 15375357604
阅读(29)
评论(0)
推荐(0)
2023年8月18日
复习
摘要: 推荐系统实践_马飞飞的博客-CSDN博客 isthegoal (fly) · GitHub 大模型面试八股 - 知乎 (zhihu.com) 大模型面试八股答案(一)——基础知识 - 知乎 (zhihu.com) GitHub - yangjianxin1/Firefly: Firefly(流萤):
阅读全文
posted @ 2023-08-18 11:23 15375357604
阅读(52)
评论(0)
推荐(0)
git
摘要: git 本地代码提交至远程master分支解决方法 git 提交代码,本地新建一个my分支,不从本地master分支直接上传,而是先从本地my分支上提交至本地master分支,然后本地master提交至远程master分支上。前提是远程只有一个master分支。第一步:首先到工程目录下。打开git
阅读全文
posted @ 2023-08-18 11:06 15375357604
阅读(27)
评论(0)
推荐(0)
2023年8月17日
softmax,logsumexp, softmax的上溢(overflow)或下溢
摘要: LSE:logsumexp
阅读全文
posted @ 2023-08-17 18:14 15375357604
阅读(52)
评论(0)
推荐(0)
2023年8月8日
transform和大模型训练相关
摘要: 分析transformer模型的参数量、计算量、中间激活、KV cache - 知乎 (zhihu.com) 1.数据流程 注:解码的过程会多一个Attention,先加掩码来避免解码获取当前word后的词 数据的计算流程:embeding——》multi head attention——》Add&
阅读全文
posted @ 2023-08-08 16:32 15375357604
阅读(636)
评论(0)
推荐(0)
2023年8月7日
一次关于mybatis的bug解决
摘要: bug表现: 网上的一些映射的对应关系我这边都排除了,实际的是创建级联文件夹时候要逐个去创建:比如com.xx.xx.xx,不能一次性创建,不然idea会把这个识别成一个文件夹,而不是级联的文件夹,编译的时候,mapper类和对应的mapper.xml就不会编译到一起,会报找不到的错误,判断方式:右
阅读全文
posted @ 2023-08-07 10:32 15375357604
阅读(17)
评论(0)
推荐(0)
2023年8月3日
numpy,pandas,pytorch的一些基本函数
摘要: concatenate(vstack列方向 和 hstack行方向) numpy.concatenate((a1, a2, ...), axis = 0) 其中: a1, a2,....: 待合并的数组 axis: 沿着数组合并的维度,默认为 0(对于二维数组来说,默认沿着行的方向进行合并) 这里需
阅读全文
posted @ 2023-08-03 11:04 15375357604
阅读(40)
评论(0)
推荐(0)
2023年7月25日
python写数据到excel
摘要: def wirte_to_excel(sug_rs, search_rs, statistics_rs, filename): # openpyxl库储存数据到excel wb = op.Workbook() # 创建工作簿对象 sug_sheet = wb.active #获取第一个默认的shee
阅读全文
posted @ 2023-07-25 20:11 15375357604
阅读(11)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
10
下一页
公告