Oneflow-Inc / oneflow-api-cn

Chinese Documents of OneFlow API
https://start.oneflow.org/oneflow-api-cn/
7 stars 3 forks source link

翻译 Utils #61

Closed rainyq69 closed 2 years ago

rainyq69 commented 2 years ago

oneflow.utils.data.random_split

oneflow.utils.data.distributed.DistributedSampler

oneflow.utils.data.distributed.DistributedSampler.set_epoch

S882li commented 2 years ago

utils其实暂时不用翻译的,因为里面的内容会在之后搬到flowvision中,所以之前我在分工的issue里有说过“无需翻译”,但是不知道被谁改了....

doombeaker commented 2 years ago

utils其实暂时不用翻译的,因为里面的内容会在之后搬到flowvision中,所以之前我在分工的issue里有说过“无需翻译”,但是不知道被谁改了....

这个是我的锅,我之前以为 utils 会为了和 pytorch 对齐,整个搬运到 flwovision 中,后来才发现,其实是 uitls.vision 要搬运(并且已经搬运),而 utils.data.xxx 这些,torch 也是这么安排的:

https://pytorch.org/docs/stable/data.html?highlight=distributedsampler#torch.utils.data.distributed.DistributedSampler

所以大家照常翻译就好。

(不过我不知道是谁把那个 issue 修改了的,不是我 😂) @S882li @rainyq69

S882li commented 2 years ago

原来如此,那就照常翻译和review吧😂

rainyq69 commented 2 years ago

utils其实暂时不用翻译的,因为里面的内容会在之后搬到flowvision中,所以之前我在分工的issue里有说过“无需翻译”,但是不知道被谁改了....

这个是我的锅,我之前以为 utils 会为了和 pytorch 对齐,整个搬运到 flwovision 中,后来才发现,其实是 uitls.vision 要搬运(并且已经搬运),而 utils.data.xxx 这些,torch 也是这么安排的:

https://pytorch.org/docs/stable/data.html?highlight=distributedsampler#torch.utils.data.distributed.DistributedSampler

所以大家照常翻译就好。

(不过我不知道是谁把那个 issue 修改了的,不是我 😂) @S882li @rainyq69

好的,那我们正常翻译。

是我修改的,sorry😓

rainyq69 commented 2 years ago

@robin978 @S882li 这个 PR 可以的话就 approve 吧