Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

[Feature flags]Seeking Guidance on PyTorch Feature Flag Design and Best Practices #2027

Description

@followtheart

I’d like to learn from PyTorch’s experience in designing feature flags to enable custom implementation. Could you help me resolve the following questions, or provide related resources for my reference:

    1. How does PyTorch design feature flags? What principles does it follow?
    1. How should feature flags be used in the source code to prevent interference among them? Are there specific rules, constraints, or even clever techniques?
    1. In testing, how can one ensure that all combinations of feature flags do not introduce bugs? Does it require testing every possible combination, or are there alternative assurances?

Thx a lot

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions