2024年8月29日
摘要:
特点: 1、创建代码的时候,自动加版权,作者,创建时间; 2、代码保存的时候,自动修改 Last Modify; 3、对于没有该模板开头的代码,不做任何的修改; 4、vim 打开,显示文件名,下划线的方式显示当前行; 5、非插入模式,自动保存代码; vimrc 位置:~.vimrc if v:lan
阅读全文
posted @ 2024-08-29 18:06
细雨微光
阅读(216)
推荐(0)
2024年8月21日
摘要:
切换到要合并的分支: git checkout master 合并开发分支到master: git merge --squash dev_branch 创建提交信息: git commit "merge dev_branch to master " 提交:git push merge的时候有三种选项
阅读全文
posted @ 2024-08-21 16:12
细雨微光
阅读(245)
推荐(0)
2024年8月19日
摘要:
import torch #查看cuda是否可用 print(torch.cuda.is_available()) #查看cuda设备的数量 print(torch.cuda.device_count()) #查看当前使用的cuda编号 print(torch.cuda.current_device
阅读全文
posted @ 2024-08-19 10:40
细雨微光
阅读(291)
推荐(0)
2024年7月9日
摘要:
一、onnx 的数据类型,共有16种 elem_type: 1 --> float32 elem_type: 2 --> uint8 elem_type: 3 --> int8 elem_type: 4 --> uint16 elem_type: 5 --> int16 elem_type: 6 -
阅读全文
posted @ 2024-07-09 11:38
细雨微光
阅读(2880)
推荐(0)
2024年4月16日
摘要:
通过 pytorch 训练模型的逻辑: import torch.nn as nn import torch import numpy #from torch.utils.tensorboard import SummaryWriter import time vocabList = ["0","1
阅读全文
posted @ 2024-04-16 18:17
细雨微光
阅读(22)
推荐(0)
posted @ 2024-04-16 10:34
细雨微光
阅读(24)
推荐(0)
摘要:
transformers load模型运行机制
阅读全文
posted @ 2024-04-16 10:07
细雨微光
阅读(22)
推荐(0)
摘要:
bert 源码分析: class BertSelfAttention
阅读全文
posted @ 2024-04-16 10:06
细雨微光
阅读(12)
推荐(0)
2024年4月15日
摘要:
dataclasses 简单示例: import transformers from dataclasses import dataclass,field import argparse @dataclass class Person(): age: int = field(default=10)
阅读全文
posted @ 2024-04-15 22:41
细雨微光
阅读(117)
推荐(0)
2023年12月27日
摘要:
查看最新提交的日期: git log -1 --pretty=oneline --pretty=format:"%ad"》Wed Dec 27 10:49:13 2023 +0800 查看最新提交的日期: git log -1 --pretty=oneline --pretty=format:"%a
阅读全文
posted @ 2023-12-27 11:04
细雨微光
阅读(178)
推荐(0)