Skip to content

Conversation

@NicolasHug
Copy link
Contributor

No description provided.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 8, 2025
Comment on lines +35 to +36
DeviceInterfaceKey(torch::DeviceType type, const std::string_view& variant)
: deviceType(type), variant(variant) {}
Copy link
Contributor Author

@NicolasHug NicolasHug Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Internal linter is complaining that we're doing

DeviceInterfaceKey(torch::kCUDA, /*variant=*/"beta"),

and that our /*variant=*/ comment doesn't match the name of the parameter which is var.

I'm choosing to change the parameter name to from var to variant, instead of updating the comment: we use "variant" everywhere. "var" was only used for the initialization list not to look like variant(variant), which ... it does now. 🤷‍♂️

@NicolasHug NicolasHug merged commit 9c5da20 into meta-pytorch:main Oct 8, 2025
50 checks passed
@NicolasHug NicolasHug deleted the internal0linter branch October 8, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants