关于Keras 入门指南 开发者指南 Keras 3 API 文档 模型 API 层 API 回调API 操作API 优化器 度量标准 损失函数 数据加载 内置小型数据集 Keras 应用程序 混合精度 多设备分布 RNG API 实用工具 Keras调优器 KerasCV Keras自然语言处理(KerasNLP) 预训练模型 模型API 分词器 预处理层 模型层 采样器 指标 Keras 2 API 文档 代码示例 KerasTuner:超参数调优 KerasCV:计算机视觉工作流 KerasNLP:自然语言工作流程
► Keras 3 API 文档 / Keras自然语言处理(KerasNLP) / 采样器

采样器

采样器基类

  • Sampler class
  • get_next_token method

束采样器

  • BeamSampler class

对比采样器

  • ContrastiveSampler class

贪婪采样器

  • GreedySampler class

随机采样器

  • RandomSampler class

TopK采样器

  • TopKSampler class

TopP采样器

  • TopPSampler class
采样器
采样器基类
束采样器
对比采样器
贪婪采样器
随机采样器
TopK采样器
TopP采样器
Terms | Privacy