会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
龙哥盟
掠夺·扩张·投机·博弈
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
496
497
498
499
500
501
502
503
504
···
851
下一页
2024年6月29日
Transformers-源码解析-八-
摘要: Transformers 源码解析(八) .\modeling_tf_outputs.py # 导入警告模块,用于处理警告信息 import warnings # 导入数据类装饰器,用于定义数据类 from dataclasses import dataclass # 导入类型提示,用于类型注解 f
阅读全文
posted @ 2024-06-29 15:48 绝不原创的飞龙
阅读(673)
评论(0)
推荐(0)
2024年6月28日
Lucidrains-系列项目源码解析-一-
摘要: Lucidrains 系列项目源码解析(一) .\lucidrains\Adan-pytorch\adan_pytorch\adan.py import math import torch from torch.optim import Optimizer # 定义一个函数,用于检查变量是否存在 d
阅读全文
posted @ 2024-06-28 14:15 绝不原创的飞龙
阅读(272)
评论(0)
推荐(0)
Lucidrains-系列项目源码解析-五十一-
摘要: Lucidrains 系列项目源码解析(五十一) .\lucidrains\x-transformers\x_transformers\xval.py """ 定义了一个基于离散标记的常规变换器,但对于数字是连续的 更好地泛化了算术 https://arxiv.org/abs/2310.02989
阅读全文
posted @ 2024-06-28 14:14 绝不原创的飞龙
阅读(89)
评论(0)
推荐(0)
Lucidrains-系列项目源码解析-五十-
摘要: Lucidrains 系列项目源码解析(五十) .\lucidrains\x-clip\setup.py # 导入设置和查找包的函数 from setuptools import setup, find_packages # 设置包的信息 setup( # 包的名称 name = 'x-clip',
阅读全文
posted @ 2024-06-28 14:14 绝不原创的飞龙
阅读(179)
评论(0)
推荐(0)
Lucidrains-系列项目源码解析-五-
摘要: Lucidrains 系列项目源码解析(五) .\lucidrains\byol-pytorch\byol_pytorch\trainer.py # 导入必要的库 from pathlib import Path import torch import torch.distributed as di
阅读全文
posted @ 2024-06-28 14:14 绝不原创的飞龙
阅读(134)
评论(0)
推荐(0)
Lucidrains-系列项目源码解析-四十一-
摘要: Lucidrains 系列项目源码解析(四十一) .\lucidrains\soundstorm-pytorch\soundstorm_pytorch\trainer.py # 导入必要的模块 from pathlib import Path import re from shutil import
阅读全文
posted @ 2024-06-28 14:14 绝不原创的飞龙
阅读(77)
评论(0)
推荐(0)
Lucidrains-系列项目源码解析-四十五-
摘要: Lucidrains 系列项目源码解析(四十五) .\lucidrains\triton-transformer\triton_transformer\cross_entropy.py # 导入 torch 库 import torch # 导入 torch 中的函数库 import torch.n
阅读全文
posted @ 2024-06-28 14:13 绝不原创的飞龙
阅读(241)
评论(0)
推荐(0)
Lucidrains-系列项目源码解析-四十四-
摘要: Lucidrains 系列项目源码解析(四十四) .\lucidrains\toolformer-pytorch\toolformer_pytorch\tools.py # 导入所需的库 import os # 尝试导入所需的库,如果导入失败则输出错误信息并退出程序 try: # 从dotenv库中
阅读全文
posted @ 2024-06-28 14:13 绝不原创的飞龙
阅读(110)
评论(0)
推荐(0)
Lucidrains-系列项目源码解析-四十三-
摘要: Lucidrains 系列项目源码解析(四十三) .\lucidrains\tf-bind-transformer\scripts\fetch_factor_fastas.py # 导入所需的库 import requests from pathlib import Path import clic
阅读全文
posted @ 2024-06-28 14:12 绝不原创的飞龙
阅读(99)
评论(0)
推荐(0)
Lucidrains-系列项目源码解析-四十七-
摘要: Lucidrains 系列项目源码解析(四十七) .\lucidrains\vit-pytorch\setup.py # 导入设置和查找包的函数 from setuptools import setup, find_packages # 设置包的元数据 setup( # 包的名称 name = 'v
阅读全文
posted @ 2024-06-28 14:12 绝不原创的飞龙
阅读(101)
评论(0)
推荐(0)
上一页
1
···
496
497
498
499
500
501
502
503
504
···
851
下一页
公告