上一页 1 ··· 422 423 424 425 426 427 428 429 430 ··· 773 下一页
摘要: Lucidrains 系列项目源码解析(二十四) .\lucidrains\magvit2-pytorch\magvit2_pytorch\optimizer.py # 从 torch.optim 模块中导入 AdamW 和 Adam 优化器 from torch.optim import Adam 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(98) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十三) .\lucidrains\lion-pytorch\setup.py # 导入设置和查找包的函数 from setuptools import setup, find_packages # 设置包的元数据 setup( name = 'lion-py 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(137) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十七) .\lucidrains\metaformer-gpt\setup.py # 导入设置工具和查找包的函数 from setuptools import setup, find_packages # 设置包的信息 setup( # 包的名称 name 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(70) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十六) .\lucidrains\memory-efficient-attention-pytorch\memory_efficient_attention_pytorch\memory_efficient_cosine_sim_attention.py i 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(195) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十九) .\lucidrains\naturalspeech2-pytorch\naturalspeech2_pytorch\attend.py # 导入必要的库 from collections import namedtuple from functoo 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(138) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十二) .\lucidrains\lightweight-gan\lightweight_gan\diff_augment.py # 导入random模块 import random # 导入torch模块及其子模块 import torch import 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(88) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十八) .\lucidrains\multistream-transformers\multistream_transformers\__init__.py # 从 multistream_transformers 包中导入 MultistreamTrans 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(107) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十) .\lucidrains\imagen-pytorch\imagen_pytorch\imagen_pytorch.py # 导入数学库 import math # 从随机模块中导入随机函数 from random import random # 从 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(69) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二) .\lucidrains\alphafold2\scripts\refinement.py # 导入所需的库和模块 import os import json import warnings # 科学计算库 import numpy as np # 尝试 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(78) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(八) .\lucidrains\DALLE-pytorch\setup.py # 导入设置工具和查找包工具 from setuptools import setup, find_packages # 执行版本文件中的代码,将版本信息导入当前环境 exec(op 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(172) 评论(0) 推荐(0)
上一页 1 ··· 422 423 424 425 426 427 428 429 430 ··· 773 下一页