上一页 1 ··· 582 583 584 585 586 587 588 589 590 ··· 939 下一页
摘要: Transformers 源码解析(二十一) .\models\blip\modeling_tf_blip_text.py # 导入所需的库和模块 from __future__ import annotations import math # 导入数学库,用于数学运算 from typing im 阅读全文
posted @ 2024-06-29 16:55 绝不原创的飞龙 阅读(290) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十五) .\models\clap\processing_clap.py """ Audio/Text processor class for CLAP """ from ...processing_utils import ProcessorMixin # 导 阅读全文
posted @ 2024-06-29 16:55 绝不原创的飞龙 阅读(318) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十四) .\models\canine\tokenization_canine.py # coding=utf-8 # Copyright Google AI and The HuggingFace Inc. team. All rights reserved. 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(195) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十三) .\models\bros\processing_bros.py # 设置编码格式为 UTF-8,确保支持中文等多种字符 # 版权声明,指明此代码版权归 HuggingFace Inc. 团队所有,遵循 Apache License 2.0 # 详细许可 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(175) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十七) .\models\clvp\number_normalizer.py # coding=utf-8 # Copyright 2023 The HuggingFace Inc. team. # # Licensed under the Apache Lic 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(192) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十六) .\models\clip\processing_clip.py # coding=utf-8 # 版权所有 2021 年 HuggingFace Inc. 团队 # # 根据 Apache 许可证 2.0 版本进行许可;除非符合许可证,否则不得使用此文 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(339) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十九) .\models\convbert\modeling_tf_convbert.py # coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # L 阅读全文
posted @ 2024-06-29 15:50 绝不原创的飞龙 阅读(124) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十二) .\models\bloom\modeling_flax_bloom.py # 导入所需的模块和库 import math from functools import partial from typing import Optional, Tuple 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(140) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十八) .\models\conditional_detr\feature_extraction_conditional_detr.py # 设置编码格式为 UTF-8 # 版权声明和许可条款,指明此代码的版权归 HuggingFace Inc. 团队所有,遵循 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(157) 评论(0) 推荐(0)
摘要: Transformers 源码解析(二十) .\models\blenderbot_small\tokenization_blenderbot_small.py # coding=utf-8 # 版权 2021 年 Facebook Inc. 和 HuggingFace Inc. 团队保留所有权利。 阅读全文
posted @ 2024-06-29 15:49 绝不原创的飞龙 阅读(126) 评论(0) 推荐(0)
上一页 1 ··· 582 583 584 585 586 587 588 589 590 ··· 939 下一页