上一页 1 ··· 485 486 487 488 489 490 491 492 493 ··· 851 下一页
摘要: Transformers 源码解析(一百零八) .\models\swin\modeling_tf_swin.py # coding=utf-8 # 版权 2022 年 Microsoft Research 和 HuggingFace Inc. 团队保留所有权利。 # # 根据 Apache 许可证 阅读全文
posted @ 2024-07-01 10:53 绝不原创的飞龙 阅读(70) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百二十一) .\models\wav2vec2\modeling_wav2vec2.py # coding=utf-8 # Copyright 2021 The Fairseq Authors and the HuggingFace Inc. team. All 阅读全文
posted @ 2024-07-01 10:53 绝不原创的飞龙 阅读(119) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百二十五) .\models\whisper\tokenization_whisper_fast.py # coding=utf-8 # 设置文件编码为UTF-8,确保可以正确处理中文等特殊字符 # 版权声明,指明此代码的版权归The HuggingFace I 阅读全文
posted @ 2024-07-01 10:53 绝不原创的飞龙 阅读(268) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百二十四) .\models\whisper\generation_whisper.py # coding=utf-8 # Copyright 2024 The HuggingFace Inc. team. # # Licensed under the Apac 阅读全文
posted @ 2024-07-01 10:53 绝不原创的飞龙 阅读(447) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百二十三) .\models\wav2vec2_conformer\__init__.py # 导入所需的依赖和模块 from typing import TYPE_CHECKING # 导入类型检查模块 from ...utils import Optiona 阅读全文
posted @ 2024-07-01 10:53 绝不原创的飞龙 阅读(205) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百二十七) .\models\xlm_roberta\modeling_tf_xlm_roberta.py # 编码声明,指定文件编码为UTF-8 # 版权声明,版权归Facebook AI Research和HuggingFace Inc.团队所有 # 版权声 阅读全文
posted @ 2024-07-01 10:53 绝不原创的飞龙 阅读(156) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百二十六) .\models\xlm\modeling_xlm.py # coding=utf-8 # Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team. # # Licens 阅读全文
posted @ 2024-07-01 10:53 绝不原创的飞龙 阅读(135) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百二十九) .\models\xmod\__init__.py # flake8: noqa # 禁用 flake8 检查,因为无法忽略 "F401 '...' imported but unused" 警告,但要保留其他警告。因此完全不检查此模块。 # Cop 阅读全文
posted @ 2024-07-01 10:53 绝不原创的飞龙 阅读(194) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百二十二) .\models\wav2vec2\__init__.py # 导入必要的模块和函数 from typing import TYPE_CHECKING # 从内部模块中导入异常类和延迟加载模块 from ...utils import ( Optio 阅读全文
posted @ 2024-07-01 10:53 绝不原创的飞龙 阅读(185) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百二十八) .\models\xlm_roberta_xl\__init__.py # 引入类型检查模块 from typing import TYPE_CHECKING # 引入自定义的异常和模块懒加载工具函数 from ...utils import Opt 阅读全文
posted @ 2024-06-30 15:41 绝不原创的飞龙 阅读(152) 评论(0) 推荐(0)
上一页 1 ··· 485 486 487 488 489 490 491 492 493 ··· 851 下一页