# naive_grouper Group all samples in a dataset into a single batched sample. This operator takes a dataset and combines all its samples into one batched sample. If the input dataset is empty, it returns an empty dataset. The resulting batched sample is a dictionary where each key corresponds to a list of values from all samples in the dataset. 将数据集中的所有样本合并成一个批次样本。 该算子接受一个数据集,并将其所有样本合并为一个批次样本。如果输入的数据集为空,则返回一个空的数据集。生成的批次样本是一个字典,其中每个键对应于数据集中所有样本的值列表。 Type 算子类型: **grouper** Tags 标签: cpu ## 🔧 Parameter Configuration 参数配置 | name 参数名 | type 类型 | default 默认值 | desc 说明 | |--------|------|--------|------| | `args` | | `''` | extra args | | `kwargs` | | `''` | extra args | ## 📊 Effect demonstration 效果演示 ### test_naive_group ```python NaiveGrouper() ``` #### 📥 input data 输入数据
Today is Sunday and it's a happy day!
Sur la plateforme MT4, plusieurs manières d'accéder à ces fonctionnalités sont conçues simultanément.
欢迎来到阿里巴巴!
["Today is Sunday and it's a happy day!", "Sur la plateforme MT4, plusieurs manières d'accéder à \nces fonctionnalités sont conçues simultanément.", '欢迎来到阿里巴巴!']