Skip to content

Build error with MSVC (aten\src\ATen\native\quantized\Copy.cpp) #20642

@Jonas1312

Description

@Jonas1312

🐛 Bug

..\aten\src\ATen\native\quantized\Copy.cpp(18): error C2065: 'src_data': undeclared identifier
..\aten\src\ATen\native\quantized\Copy.cpp(18): error C2672: 'at::quantize_val': no matching overloaded function found
..\aten\src\ATen\native\quantized\Copy.cpp(26): error C2780: 'T at::quantize_val(float,int32_t,float)': expects 3 arguments - 2 provided

To Reproduce

Steps to reproduce the behavior:

set CMAKE_GENERATOR="Visual Studio 16 2019" x64

set DISTUTILS_USE_SDK=1

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64

set CMAKE_GENERATOR=Ninja

set REL_WITH_DEB_INFO=1

python setup.py install

Metadata

Metadata

Assignees

Labels

oncall: quantizationQuantization support in 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