会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Marksion夜猫人
专注:大模型应用、自动化测试、Agent智能体
首页
新随笔
联系
管理
上一页
1
2
3
4
5
6
···
15
下一页
2026年7月29日
QKV加权求和
摘要: import torch import torch.nn.functional as F #1. 创建 Query、Key 和 Value 张量 q = torch.randn(2, 3, 4) # 形状 (batch_size, seq_len1, feature_dim) k = torch.r
阅读全文
posted @ 2026-07-29 09:12 Marksion
阅读(4)
评论(0)
推荐(0)
2026年7月28日
注意力机制
摘要: import torch import torch.nn.functional as F # 一个形状为 (batch_size, seq_len, feature_dim) 的张量(矩阵) x # 两个样本, 每个样本3 个词语长度,每个词语编码为4维 x = torch.randn(2, 3,
阅读全文
posted @ 2026-07-28 23:44 Marksion
阅读(5)
评论(0)
推荐(0)
2026年7月22日
注意力机制练习 Attention
摘要: 1 import torch 2 import torch.nn.functional as F 3 4 # 一个形状为 (batch_size, seq_len, feature_dim) 的张量(矩阵) x 5 # 两个样本, 每个样本3 个词语长度,每个词语编码为4维 6 x = torch.
阅读全文
posted @ 2026-07-22 00:22 Marksion
阅读(6)
评论(0)
推荐(0)
Seq2Sep机器训练
摘要: Seq2Sep机器训练 1 import numpy as np 2 import torch 3 import random 4 import torch.nn as nn 5 6 # 构建语料库,每行包含中文、英文(解码器输入)和翻译成英文后的目标输出 3 个句子 7 sentences = [
阅读全文
posted @ 2026-07-22 00:20 Marksion
阅读(6)
评论(0)
推荐(0)
2020年7月17日
TestCafe前端E2E自动化测试技术要点(转)
摘要: TestCafe前端E2E自动化测试技术要点 最近用TestCafe完成了一个营销活动的前端自动化测试,整个过程很顺利,运行也较稳定。对比以前用Selenium作的几个Web UI自动化项目而言,感觉到了新一代的前端E2E自动化测试工具的强大。下面记录一些遇到的要点和TestCafe独有的一些特性。
阅读全文
posted @ 2020-07-17 13:51 Marksion
阅读(1324)
评论(0)
推荐(0)
2020年7月16日
UI自动化测试框架 ---TestCafe(转)
摘要: 什么是TestCafe 转自: https://www.jianshu.com/p/94181abe5e9a 官方: A node.js tool to automate end-to-end web testing Write tests in JS or TypeScript, run them
阅读全文
posted @ 2020-07-16 16:05 Marksion
阅读(1132)
评论(0)
推荐(0)
2020年7月9日
一条龙(1)
摘要: 资源收集与整理 引图: ZLT-MP 微服平台 nginx http://nginx.org/en/docs/beginners_guide.html flutter https://flutter.dev/ SpringCloud https://gitee.com/homepay/microse
阅读全文
posted @ 2020-07-09 11:03 Marksion
阅读(198)
评论(0)
推荐(0)
Nginx常用命令
摘要: Nginx的启动(start),停止(stop)命令 查看Nginx的版本号:nginx -V 启动Nginx:start nginx 或者 nginx 快速停止或关闭Nginx:nginx -s stop 正常停止或关闭Nginx:nginx -s quit 配置文件修改重装载命令:nginx -
阅读全文
posted @ 2020-07-09 10:56 Marksion
阅读(352)
评论(0)
推荐(0)
2020年2月9日
如何下载各大视频网站的视频,从html5中video标签截取blob视频流(纯使用Downie下载工具非代码操作)
摘要: 1.背景: 网友常遇到网站上喜欢的视频,只能看又不能下载(留念),特别可怜的是巨额购买的视频教程到期了快下架,无奈却来不及收集。。。。 2.冲突: 资金有限(穷),能力有限(不想Coding),时间有限(懒) 3.疑问: 如何能快速下载一视频,最好免费!最好非态资源(非 src='./static/
阅读全文
posted @ 2020-02-09 00:30 Marksion
阅读(13076)
评论(0)
推荐(0)
2020年1月19日
beego连接Mysql,生成WebAPI+CRUD和Swagger
摘要: 1.安装工具,下载 Go: https://studygolang.com/dl/golang/go1.13.6.windows-amd64.msi 2.创建项目(注:须进入创建的目录,如: cd beevue) 3.创建DB,导入数据 4.连接DB生成API 5.修改main.go,配置数据连接
阅读全文
posted @ 2020-01-19 20:15 Marksion
阅读(602)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
15
下一页