上一页 1 ··· 497 498 499 500 501 502 503 504 505 ··· 865 下一页
摘要: Transformers 源码解析(一百三十一) .\pipelines\audio_classification.py # 导入子进程管理模块 import subprocess # 导入 Union 用于类型提示 from typing import Union # 导入 numpy 和 req 阅读全文
posted @ 2024-07-01 10:56 绝不原创的飞龙 阅读(246) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十五) .\tools\agent_types.py # 导入必要的库和模块 import os # 导入操作系统模块 import pathlib # 导入路径操作模块 import tempfile # 导入临时文件模块 import uuid # 导入 阅读全文
posted @ 2024-07-01 10:56 绝不原创的飞龙 阅读(418) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十四) .\tf_utils.py # 导入必要的库和模块 from typing import List, Optional, Union import numpy as np # 导入NumPy库,用于数值计算 import tensorflow as 阅读全文
posted @ 2024-07-01 10:55 绝不原创的飞龙 阅读(487) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十三) .\processing_utils.py # 设置文件编码为 UTF-8 # 版权声明,声明代码的版权归 The HuggingFace Inc. 团队所有 # # 根据 Apache 许可证版本 2.0 使用此文件,除非遵守许可证,否则不得使用此 阅读全文
posted @ 2024-07-01 10:55 绝不原创的飞龙 阅读(786) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十七) .\training_args_seq2seq.py # 导入日志模块,用于记录程序运行时的信息 import logging # 导入数据类装饰器和字段装饰器 from dataclasses import dataclass, field # 导 阅读全文
posted @ 2024-07-01 10:55 绝不原创的飞龙 阅读(183) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十六) .\trainer_callback.py # coding=utf-8 # 定义编码格式为UTF-8 # Copyright 2020-present the HuggingFace Inc. team. # 版权声明,指出代码的版权归Huggin 阅读全文
posted @ 2024-07-01 10:55 绝不原创的飞龙 阅读(885) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十九) .\utils\fx.py # 导入 Python 内置模块和第三方库 import builtins import collections import functools import inspect import math import ope 阅读全文
posted @ 2024-07-01 10:54 绝不原创的飞龙 阅读(345) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十二) .\pipelines\pt_utils.py import numpy as np import torch from torch.utils.data import Dataset, IterableDataset from ..utils.ge 阅读全文
posted @ 2024-07-01 10:54 绝不原创的飞龙 阅读(218) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十八) .\utils\dummy_sentencepiece_and_tokenizers_objects.py # 这个文件是通过命令 `make fix-copies` 自动生成的,不要编辑。 # 从上层模块导入 DummyObject 和 requi 阅读全文
posted @ 2024-07-01 10:54 绝不原创的飞龙 阅读(81) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十) .\models\yolos\__init__.py # 版权声明和许可信息 # 2022 年由 HuggingFace 团队保留所有权利 # # 根据 Apache 许可证 2.0 版本(“许可证”)授权 # 您除非符合许可证的规定,否则不得使用此文 阅读全文
posted @ 2024-07-01 10:54 绝不原创的飞龙 阅读(210) 评论(0) 推荐(0)
上一页 1 ··· 497 498 499 500 501 502 503 504 505 ··· 865 下一页