Skip to content

Error "member may not be initialized" due to constexpr at Windows #48716

@datumbox

Description

@datumbox

As discussed at pytorch/vision#3051, the use of constexpr at ir.h and pickler.h raises member may not be initialized errors on TorchVision on Windows. We should consider replacing it with CONSTEXPR_EXCEPT_WIN_CUDA.

This issue has appeared before and was patched in different places: #27958, #39394, #7962

cc @peterjc123 @maxluk @nbcsm @guyang3532 @gunandrose4u @mszhanyi @skyline75489

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: windowsWindows support for PyTorchtriagedThis 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