上一页 1 ··· 388 389 390 391 392 393 394 395 396 ··· 742 下一页
摘要: Lucidrains 系列项目源码解析(四十四) .\lucidrains\toolformer-pytorch\toolformer_pytorch\tools.py # 导入所需的库 import os # 尝试导入所需的库,如果导入失败则输出错误信息并退出程序 try: # 从dotenv库中 阅读全文
posted @ 2024-06-28 14:13 绝不原创的飞龙 阅读(104) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(四十三) .\lucidrains\tf-bind-transformer\scripts\fetch_factor_fastas.py # 导入所需的库 import requests from pathlib import Path import clic 阅读全文
posted @ 2024-06-28 14:12 绝不原创的飞龙 阅读(85) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(四十七) .\lucidrains\vit-pytorch\setup.py # 导入设置和查找包的函数 from setuptools import setup, find_packages # 设置包的元数据 setup( # 包的名称 name = 'v 阅读全文
posted @ 2024-06-28 14:12 绝不原创的飞龙 阅读(88) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(四十六) .\lucidrains\vector-quantize-pytorch\vector_quantize_pytorch\residual_vq.py # 导入必要的库 import random from math import ceil from 阅读全文
posted @ 2024-06-28 14:12 绝不原创的飞龙 阅读(175) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(四十九) .\lucidrains\vit-pytorch\vit_pytorch\vit_3d.py import torch # 导入 PyTorch 库 from torch import nn # 从 PyTorch 库中导入 nn 模块 from e 阅读全文
posted @ 2024-06-28 14:08 绝不原创的飞龙 阅读(146) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(四十二) .\lucidrains\st-moe-pytorch\st_moe_pytorch\__init__.py # 从 st_moe_pytorch.st_moe_pytorch 模块中导入 MoE 和 SparseMoEBlock 类 from st 阅读全文
posted @ 2024-06-28 14:08 绝不原创的飞龙 阅读(120) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(四十八) .\lucidrains\vit-pytorch\vit_pytorch\mobile_vit.py import torch import torch.nn as nn from einops import rearrange from einop 阅读全文
posted @ 2024-06-28 14:07 绝不原创的飞龙 阅读(100) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(四十) Data source The enwik8 data was downloaded from the Hutter prize page: http://prize.hutter1.net/ .\lucidrains\sinkhorn-transfo 阅读全文
posted @ 2024-06-28 14:07 绝不原创的飞龙 阅读(83) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(四) .\lucidrains\big-sleep\big_sleep\cli.py # 导入 fire 模块,用于命令行接口 import fire # 导入 random 模块并重命名为 rnd import random as rnd # 从 big_s 阅读全文
posted @ 2024-06-28 14:06 绝不原创的飞龙 阅读(90) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(十一) .\lucidrains\denoising-diffusion-pytorch\denoising_diffusion_pytorch\attend.py # 导入必要的模块和类 from functools import wraps from pa 阅读全文
posted @ 2024-06-28 14:06 绝不原创的飞龙 阅读(153) 评论(0) 推荐(0)
上一页 1 ··· 388 389 390 391 392 393 394 395 396 ··· 742 下一页