上一页 1 ··· 483 484 485 486 487 488 489 490 491 ··· 851 下一页
摘要: Transformers 源码解析(一百一十) .\models\t5\modeling_tf_t5.py # coding=utf-8 # Copyright 2020 T5 Authors and The HuggingFace Inc. team. # Copyright (c) 2018, 阅读全文
posted @ 2024-07-01 10:56 绝不原创的飞龙 阅读(243) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百四十) .\utils\logging.py # 设置脚本编码格式为 UTF-8 # Copyright 2020 Optuna, Hugging Face # # 根据 Apache 许可证 2.0 版本,除非符合许可证规定,否则禁止使用该文件 # 可以在以 阅读全文
posted @ 2024-07-01 10:56 绝不原创的飞龙 阅读(480) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十一) .\pipelines\audio_classification.py # 导入子进程管理模块 import subprocess # 导入 Union 用于类型提示 from typing import Union # 导入 numpy 和 req 阅读全文
posted @ 2024-07-01 10:56 绝不原创的飞龙 阅读(227) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十五) .\tools\agent_types.py # 导入必要的库和模块 import os # 导入操作系统模块 import pathlib # 导入路径操作模块 import tempfile # 导入临时文件模块 import uuid # 导入 阅读全文
posted @ 2024-07-01 10:56 绝不原创的飞龙 阅读(387) 评论(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 绝不原创的飞龙 阅读(464) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十三) .\processing_utils.py # 设置文件编码为 UTF-8 # 版权声明,声明代码的版权归 The HuggingFace Inc. 团队所有 # # 根据 Apache 许可证版本 2.0 使用此文件,除非遵守许可证,否则不得使用此 阅读全文
posted @ 2024-07-01 10:55 绝不原创的飞龙 阅读(768) 评论(0) 推荐(0)
摘要: Transformers 源码解析(一百三十七) .\training_args_seq2seq.py # 导入日志模块,用于记录程序运行时的信息 import logging # 导入数据类装饰器和字段装饰器 from dataclasses import dataclass, field # 导 阅读全文
posted @ 2024-07-01 10:55 绝不原创的飞龙 阅读(155) 评论(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 绝不原创的飞龙 阅读(842) 评论(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 绝不原创的飞龙 阅读(328) 评论(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 绝不原创的飞龙 阅读(193) 评论(0) 推荐(0)
上一页 1 ··· 483 484 485 486 487 488 489 490 491 ··· 851 下一页