为什么Pytorch创建另一个数据repro torchdata

发布于 2025-01-27 10:39:49 字数 173 浏览 3 评论 0原文

为什么Pytorch创建另一个称为torchdata的Repro,用于相似/新 dataset 和dataloader,而不是在现有的pytorch repro中添加它们? 数据集datapipe有什么区别?谢谢。

Why PyTorch creates another repro called TorchData for similar/new Dataset and DataLoader instead of adding them in the existing PyTorch repro? What's the difference of Dataset and Datapipe? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟凡古楼 2025-02-03 10:39:49

torchdata是一个通用模块化数据加载原语的库,用于轻松构建灵活和性能的数据管道。

它的目的是提供可合并的Itable stylemap-style构建块,称为dataPipes,它们可以与Pytorch的数据载体一起使用。它包含功能性,可以重现火炬和火炬文字中的许多不同数据集,即加载,解析,缓存以及其他几个实用程序(例如检查)。

datapipe只是用于组合用法的pytorch数据集的重命名和重新应用。 DataPipe通过Python数据结构接收一些访问功能,__ Iter __用于iterdatapipes__ getitem __ getitem __ for MapDataPipes,并返回一个新的访问功能应用转换。

TorchData is a library of common modular data loading primitives for easily constructing flexible and performant data pipelines.

It aims to provide composable Iterable-style and Map-style building blocks called DataPipes that work well out of the box with the PyTorch's DataLoader. It contains functionality to reproduce many different datasets in TorchVision and TorchText, namely including loading, parsing, caching, and several other utilities (e.g. hash checking).

DataPipe is simply a renaming and repurposing of the PyTorch Dataset for composed usage. A DataPipe takes in some access function over Python data structures, __iter__ for IterDataPipes and __getitem__ for MapDataPipes, and returns a new access function with a slight transformation applied.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文