KEMBAR78
[dynamo] support itertools.repeat: call_function repeat in skip_files Builtin repeat, skip reason: filename is None · Issue #110286 · pytorch/pytorch · GitHub
Skip to content

[dynamo] support itertools.repeat: call_function repeat in skip_files Builtin repeat, skip reason: filename is None #110286

@ezyang

Description

@ezyang

🐛 Describe the bug

self explanatory

we should use the polyfill approach to implement this see also #109284 (comment) #109972 (comment)

Real world use case in torchrec dist_data.py

            batch_size_per_feature = list(
                itertools.chain.from_iterable(
                    itertools.repeat(x, local_split) for x in batch_size_per_rank
                )
            )

Versions

main

cc @msaroufim @wconstab @bdhirsh @anijain2305 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @chenyang78 @aakhundov @kadeng

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuemodule: dynamooncall: pt2triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions