BatchSize
更多信息

- 设置 BatchSizen 指定 n 个范例应一起处理
- 默认设置 BatchSize->Automatic 指定 BatchSize 应根据可用的 GPU 或系统内存等因素进行选择.
- 当通过编写 net[input,BatchSize->n] 对网络进行计算时,可指定 BatchSize. 如果通过 TargetDevice->"GPU" 也同时指定了 GPU 计算,这将变得很重要,因为在这种情况下,内存通常更受限制.
- 对于包含动态维度(通常指定为 "Varying")的网络,通常会自动将 BatchSize 设为 16.
- 可通过 "BatchSize" 属性从 NetTrainResultsObject 中获取训练的 BatchSize.
技术笔记
相关指南
文本
Wolfram Research (2016),BatchSize,Wolfram 语言函数,https://reference.wolfram.com/language/ref/BatchSize.html (更新于 2018 年).
CMS
Wolfram 语言. 2016. "BatchSize." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2018. https://reference.wolfram.com/language/ref/BatchSize.html.
APA
Wolfram 语言. (2016). BatchSize. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/BatchSize.html 年
BibTeX
@misc{reference.wolfram_2025_batchsize, author="Wolfram Research", title="{BatchSize}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/BatchSize.html}", note=[Accessed: 18-September-2025]}
BibLaTeX
@online{reference.wolfram_2025_batchsize, organization={Wolfram Research}, title={BatchSize}, year={2018}, url={https://reference.wolfram.com/language/ref/BatchSize.html}, note=[Accessed: 18-September-2025]}