Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install on windows #171

Open
zachysaur opened this issue Oct 11, 2024 · 16 comments
Open

Unable to install on windows #171

zachysaur opened this issue Oct 11, 2024 · 16 comments
Labels

Comments

@zachysaur
Copy link

is there a way to install this on windows?

@alihassanijr
Copy link
Member

You can build NATTEN from source on Windows with MSVC; just refer to our docs.

If you're using WSL, you can both build from source and install via pip wheels; just refer to our website.

@zachysaur
Copy link
Author

it dont work

@alihassanijr
Copy link
Member

There's nothing I can do with that level of detail.
Please attach logs and any other useful information you might have so I can help you.

@zachysaur
Copy link
Author

``746f69d0bd96e8085c4a5\setup.py", line 219, in build_extension
subprocess.check_call(
File "C:\Program Files\Python311\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\adrian_b\AppData\Local\Temp\pip-install-g7udw0x_\nattll-g7udw0x_\natten_4a7e0e8d2a7746f69d0bd96e8085c4a5\csrc', '-DPYTHON_PATH=C:\Users\adrian_b\Desktop\gendesign-main\venverative-interior-design-main\venv\Scripts\python.exe', '-DOUTPUT_FILE_NAME=natten\libnatten.cp311-win_amd-DNATTEN_IS_WINDO64', '-DNATTEN_CUDA_ARCH_LIST=', '-DNATTEN_IS_WINDOWS=1', '-DNATTEN_IS_MAC=0', '-DIS_LIBTORCH_BUILT_WITH_CXX1Users\adrian_b\1_ABI=0', '-DNATTEN_WITH_AVX=1', '-DPY_LIB_DIR=C:\Users\adrian_b\Desktop\generative-interior-design-main\turned non-zero e\venv\Scripts\libs', '-G Ninja', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for natten
Running setup.py clean for natten
Failed to build natten
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (natten)``

@jiangke1214
Copy link

有没有办法在 Windows 上安装它?

Have you solved it yet?

@alihassanijr
Copy link
Member

@zachysaur that's still only the last few lines of the error. Please capture and upload the full log as a text file.

@icyriverwolf
Copy link

wish a windows edition

@alihassanijr
Copy link
Member

@icyriverwolf @jiangke1214 Last time I had access to a Windows machine with CUDA I fixed all the build errors and confirmed NATTEN builds on Windows.

I don't really have an easy way to try it again, so any complete logs will be very helpful in identifying and resolving the issue.

@Yucc-star
Copy link

Hi, Ali. I'm sorry that I don't have a lot of knowledge, but I also encountered the problem that I can't install NATTEN on windows, if you have time, can you please Point out the problems I have?

Traceback (most recent call last):
File "setup.py", line 243, in
setup(
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_init_.py", line 117, in setup
return distutils.core.setup(**attrs)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\core.py", line 183, in setup
return run_commands(dist)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\core.py", line 199, in run_commands
dist.run_commands()
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 954, in run_commands
self.run_command(cmd)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\dist.py", line 950, in run_command
super().run_command(command)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\install.py", line 97, in run
self.do_egg_install()
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\install.py", line 149, in do_egg_install
self.run_command('bdist_egg')
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\dist.py", line 950, in run_command
super().run_command(command)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\bdist_egg.py", line 168, in run
cmd = self.call_command('install_lib', warn_dir=False)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\bdist_egg.py", line 154, in call_command
self.run_command(cmdname)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\dist.py", line 950, in run_command
super().run_command(command)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\install_lib.py", line 19, in run
self.build()
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\command\install_lib.py", line 110, in build
self.run_command('build_ext')
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\dist.py", line 950, in run_command
super().run_command(command)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\dist.py", line 973, in run_command
cmd_obj.run()
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools\command\build_ext.py", line 98, in run
_build_ext.run(self)
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\command\build_ext.py", line 359, in run
self.build_extensions()
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\command\build_ext.py", line 476, in build_extensions
self._build_extensions_serial()
File "D:\Anaconda\envs\OneFormer\lib\site-packages\setuptools_distutils\command\build_ext.py", line 502, in _build_extensions_serial
self.build_extension(ext)
File "setup.py", line 219, in build_extension
subprocess.check_call(
File "D:\Anaconda\envs\OneFormer\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'D:\NATTEN-main\NATTEN-main\csrc', '-DPYTHON_PATH=D:\Anaconda\envs\OneFormer\python.exe', '-DOUTPUT_FILE_NAME=natten\libnatten.cp38-win_amd64', '-DNATTEN_CUDA_ARCH_LIST=75-real', '-DNATTEN_IS_WINDOWS=1', '-DNATTEN_IS_MAC=0', '-DIS_LIBTORCH_BUILT_WITH_CXX11_ABI=0', '-DNATTEN_WITH_AVX=1', '-DNATTEN_WITH_CUDA=1', '-DNATTEN_WITH_CUTLASS=1', '-DPY_LIB_DIR=D:\Anaconda\envs\OneFormer\libs', '-G Ninja', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.

@alihassanijr
Copy link
Member

@Yucc-star unfortunately your log similar to the previous one in this thread is not complete. It's maybe 10% of the full log, and it's only revealing that building failed, and nothing more. I would need the full log to be able to help.

I recommend piping the output from WindowsBuilder.bat install into a file, and sharing that file (please refrain from pasting the entire log here as it can be in the order of thousands of lines).

@zachysaur
Copy link
Author

everyone having same issue

@alihassanijr
Copy link
Member

@zachysaur I understand, but without logs, I can't even guess what the issue is, and given that I don't have a windows machine with cuda, there's little I can do to help resolve the issue if I'm not even able to reproduce it.

@alihassanijr
Copy link
Member

Marking inactive. If someone experiencing this issue can share the full log file here, I can try and look into it further. Otherwise we'll close.

@pranavgnn
Copy link

Using make:

"Cleaning up"
rm -rf dist/
process_begin: CreateProcess(NULL, rm -rf dist/, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:40: clean] Error 2

Using WindowsBuilder.bat:

NATTEN_N_WORKERS:
NATTEN_CUDA_ARCH:
NATTEN_VERBOSE:
WARNING: Ignoring invalid distribution ~orch (C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages)
DEPRECATION: Loading egg at c:\users\hp\appdata\local\programs\python\python312\lib\site-packages\binwalk-2.3.3-py3.12.egg is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330
Requirement already satisfied: packaging in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from -r requirements.txt (line 1)) (23.2)
Requirement already satisfied: torch>=2.0.0 in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from -r requirements.txt (line 2)) (2.5.1)
Requirement already satisfied: filelock in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from torch>=2.0.0->-r requirements.txt (line 2)) (3.13.1)
Requirement already satisfied: typing-extensions>=4.8.0 in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from torch>=2.0.0->-r requirements.txt (line 2)) (4.12.2)
Requirement already satisfied: networkx in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from torch>=2.0.0->-r requirements.txt (line 2)) (3.3)
Requirement already satisfied: jinja2 in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from torch>=2.0.0->-r requirements.txt (line 2)) (3.1.2)
Requirement already satisfied: fsspec in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from torch>=2.0.0->-r requirements.txt (line 2)) (2024.3.1)
Requirement already satisfied: setuptools in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from torch>=2.0.0->-r requirements.txt (line 2)) (69.0.2)
Requirement already satisfied: sympy==1.13.1 in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from torch>=2.0.0->-r requirements.txt (line 2)) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from sympy==1.13.1->torch>=2.0.0->-r requirements.txt (line 2)) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\hp\appdata\local\programs\python\python312\lib\site-packages (from jinja2->torch>=2.0.0->-r requirements.txt (line 2)) (2.1.3)
WARNING: Ignoring invalid distribution ~orch (C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages)
WARNING: Ignoring invalid distribution ~orch (C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages)
Building NATTEN for CPU ONLY.
Number of workers: 3
running install
C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
running bdist_egg
running egg_info
writing src\natten.egg-info\PKG-INFO
writing dependency_links to src\natten.egg-info\dependency_links.txt
writing requirements to src\natten.egg-info\requires.txt
writing top-level names to src\natten.egg-info\top_level.txt
reading manifest file 'src\natten.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.cc' under directory 'csrc'
warning: no files found matching '*.cpp' under directory 'third_party\cutlass\include'
warning: no files found matching '*.cuh' under directory 'third_party\cutlass\include'
warning: no files found matching '*.cu' under directory 'third_party\cutlass\include'
warning: no files found matching '*.txt' under directory 'third_party\cutlass\include'
warning: no files found matching '*.cc' under directory 'third_party\cutlass\include'
warning: manifest_maker: MANIFEST.in, line 3: path 'webpage/' cannot end with '/'

warning: manifest_maker: MANIFEST.in, line 4: path 'tools/' cannot end with '/'

warning: manifest_maker: MANIFEST.in, line 5: path 'scripts/' cannot end with '/'

warning: manifest_maker: MANIFEST.in, line 6: path 'tests/' cannot end with '/'

warning: manifest_maker: MANIFEST.in, line 7: path 'assets/' cannot end with '/'

warning: manifest_maker: MANIFEST.in, line 8: path 'docs/' cannot end with '/'

adding license file 'LICENSE'
writing manifest file 'src\natten.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
copying src\natten\context.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\flops.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\functional.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\na1d.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\na2d.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\na3d.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\natten1d.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\natten2d.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\natten3d.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\nested.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\ops.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\types.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten\__init__.py -> build\lib.win-amd64-cpython-312\natten
copying src\natten/utils\checks.py -> build\lib.win-amd64-cpython-312\natten/utils
copying src\natten/utils\log.py -> build\lib.win-amd64-cpython-312\natten/utils
copying src\natten/utils\misc.py -> build\lib.win-amd64-cpython-312\natten/utils
copying src\natten/utils\tensor.py -> build\lib.win-amd64-cpython-312\natten/utils
copying src\natten/utils\testing.py -> build\lib.win-amd64-cpython-312\natten/utils
copying src\natten/utils\__init__.py -> build\lib.win-amd64-cpython-312\natten/utils
copying src\natten/autotuner\fna_backward.py -> build\lib.win-amd64-cpython-312\natten/autotuner
copying src\natten/autotuner\fna_forward.py -> build\lib.win-amd64-cpython-312\natten/autotuner
copying src\natten/autotuner\misc.py -> build\lib.win-amd64-cpython-312\natten/autotuner
copying src\natten/autotuner\__init__.py -> build\lib.win-amd64-cpython-312\natten/autotuner
copying src\natten/autotuner/configs\fna_backward_128x128.py -> build\lib.win-amd64-cpython-312\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_backward_128x64.py -> build\lib.win-amd64-cpython-312\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_backward_64x64.py -> build\lib.win-amd64-cpython-312\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_forward_32x128.py -> build\lib.win-amd64-cpython-312\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_forward_64x128.py -> build\lib.win-amd64-cpython-312\natten/autotuner/configs
copying src\natten/autotuner/configs\fna_forward_64x64.py -> build\lib.win-amd64-cpython-312\natten/autotuner/configs
copying src\natten/autotuner/configs\__init__.py -> build\lib.win-amd64-cpython-312\natten/autotuner/configs
running build_ext
Python: C:\Users\hp\AppData\Local\Programs\Python\Python312\python.exe
Torch dir: C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch
Torch include dir: C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch/includeC:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\torch/include/torch/csrc/api/include
Building NATTEN on Windows.
Building with -D_GLIBCXX_USE_CXX11_ABI=0
-- Configuring done (5.0s)
-- Generating done (0.2s)
-- Build files have been written to: C:/Users/hp/Downloads/NATTEN/build/lib.win-amd64-cpython-312
[1/13] Building CXX object CMakeFiles/natten.dir/natten.cpp.obj
FAILED: CMakeFiles/natten.dir/natten.cpp.obj
C:\Users\hp\mingw64\bin\c++.exe -DAVX_INT -DNATTEN_WINDOWS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=libnatten -D_GLIBCXX_USE_CXX11_ABI=0 -Dnatten_EXPORTS -IC:/Users/hp/AppData/Local/Programs/Python/Python312/include -IC:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include -IC:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include -IC:/Users/hp/Downloads/NATTEN/csrc/./include -IC:/Users/hp/Downloads/NATTEN/csrc/./autogen/include -std=c++17 /MP /Zc:lambda /Zc:preprocessor -O3 -DNDEBUG -O3 /MP /Zc:lambda /Zc:preprocessor -std=gnu++17 -MD -MT CMakeFiles/natten.dir/natten.cpp.obj -MF CMakeFiles\natten.dir\natten.cpp.obj.d -o CMakeFiles/natten.dir/natten.cpp.obj -c C:/Users/hp/Downloads/NATTEN/csrc/natten.cpp
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/Device.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:11,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Tensor.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/extension.h:5,
                 from C:/Users/hp/Downloads/NATTEN/csrc/natten.cpp:24:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Exception.h:458:28: warning: inline function 'const char* c10::detail::torchCheckMsgImpl(const char*)' declared as dllimport: attribute ignored [-Wattributes]
  458 | inline C10_API const char* torchCheckMsgImpl(const char* msg) {
      |                            ^~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Exception.h:462:28: warning: inline function 'const char* c10::detail::torchCheckMsgImpl(const char*, const char*)' declared as dllimport: attribute ignored [-Wattributes]
  462 | inline C10_API const char* torchCheckMsgImpl(
      |                            ^~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Exception.h:506:34: warning: inline function 'void c10::detail::torchInternalAssertFail(const char*, const char*, uint32_t, const char*, CompileTimeEmptyString)' declared as dllimport: attribute ignored [-Wattributes]
  506 | [[noreturn]] inline C10_API void torchInternalAssertFail(
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/Backend.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/Layout.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:12:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/DispatchKeySet.h:633:20: warning: inline function 'int c10::getDispatchTableIndexForDispatchKey(DispatchKey)' declared as dllimport: attribute ignored [-Wattributes]
  633 | C10_API inline int getDispatchTableIndexForDispatchKey(DispatchKey k) {
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/Scalar.h:9,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:16:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/BFloat16.h:124:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const BFloat16&)' declared as dllimport: attribute ignored [-Wattributes]
  124 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:6:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e4m3fn.h:231:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e4m3fn&)' declared as dllimport: attribute ignored [-Wattributes]
  231 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:7:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e4m3fnuz.h:130:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e4m3fnuz&)' declared as dllimport: attribute ignored [-Wattributes]
  130 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e5m2.h:17,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:8:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Half.h:528:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Half&)' declared as dllimport: attribute ignored [-Wattributes]
  528 | C10_API inline std::ostream& operator<<(std::ostream& out, const Half& value) {
      |                              ^~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e5m2.h:139:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e5m2&)' declared as dllimport: attribute ignored [-Wattributes]
  139 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e5m2fnuz.h:129:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e5m2fnuz&)' declared as dllimport: attribute ignored [-Wattributes]
  129 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/Storage.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:19:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/StorageImpl.h:263:15: warning: 'void c10::impl::cow::materialize_cow_storage(c10::StorageImpl&)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
  263 |   friend void c10::impl::cow::materialize_cow_storage(StorageImpl& storage);
      |               ^~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/InferenceMode.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/TensorImpl.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:20:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/impl/LocalDispatchKeySet.h:70:36: warning: inline function 'c10::impl::LocalDispatchKeySet c10::impl::tls_local_dispatch_key_set()' declared as dllimport: attribute ignored [-Wattributes]
   70 | inline C10_API LocalDispatchKeySet tls_local_dispatch_key_set() {
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1603:19: warning: 'at::Tensor at::Tensor::_conj() const' redeclared without dllimport attribute after being referenced with dll linkage
 1603 | inline at::Tensor Tensor::_conj() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1618:19: warning: 'at::Tensor at::Tensor::conj_physical() const' redeclared without dllimport attribute after being referenced with dll linkage
 1618 | inline at::Tensor Tensor::conj_physical() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1668:21: warning: 'at::Tensor& at::Tensor::add_(const at::Tensor&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 1668 | inline at::Tensor & Tensor::add_(const at::Tensor & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1678:21: warning: 'at::Tensor& at::Tensor::add_(const c10::Scalar&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 1678 | inline at::Tensor & Tensor::add_(const at::Scalar & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1913:19: warning: 'at::Tensor at::Tensor::bitwise_not() const' redeclared without dllimport attribute after being referenced with dll linkage
 1913 | inline at::Tensor Tensor::bitwise_not() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2133:21: warning: 'at::Tensor& at::Tensor::copy_(const at::Tensor&, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
 2133 | inline at::Tensor & Tensor::copy_(const at::Tensor & src, bool non_blocking) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2273:21: warning: 'at::Tensor& at::Tensor::div_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 2273 | inline at::Tensor & Tensor::div_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2293:21: warning: 'at::Tensor& at::Tensor::div_(const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 2293 | inline at::Tensor & Tensor::div_(const at::Scalar & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2593:21: warning: 'at::Tensor& at::Tensor::fill_(const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 2593 | inline at::Tensor & Tensor::fill_(const at::Scalar & value) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3018:21: warning: 'at::Tensor& at::Tensor::mul_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3018 | inline at::Tensor & Tensor::mul_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3028:21: warning: 'at::Tensor& at::Tensor::mul_(const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3028 | inline at::Tensor & Tensor::mul_(const at::Scalar & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3198:19: warning: 'at::Tensor at::Tensor::neg() const' redeclared without dllimport attribute after being referenced with dll linkage
 3198 | inline at::Tensor Tensor::neg() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3333:19: warning: 'at::Tensor at::Tensor::select(int64_t, int64_t) const' redeclared without dllimport attribute after being referenced with dll linkage
 3333 | inline at::Tensor Tensor::select(int64_t dim, int64_t index) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3683:19: warning: 'at::Tensor at::Tensor::std(at::OptionalIntArrayRef, const std::optional<c10::Scalar>&, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
 3683 | inline at::Tensor Tensor::std(at::OptionalIntArrayRef dim, const ::std::optional<at::Scalar> & correction, bool keepdim) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3858:19: warning: 'at::Tensor at::Tensor::var(at::OptionalIntArrayRef, const std::optional<c10::Scalar>&, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
 3858 | inline at::Tensor Tensor::var(at::OptionalIntArrayRef dim, const ::std::optional<at::Scalar> & correction, bool keepdim) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3953:21: warning: 'at::Tensor& at::Tensor::sub_(const at::Tensor&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3953 | inline at::Tensor & Tensor::sub_(const at::Tensor & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3963:21: warning: 'at::Tensor& at::Tensor::sub_(const c10::Scalar&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3963 | inline at::Tensor & Tensor::sub_(const at::Scalar & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4248:19: warning: 'at::Tensor at::Tensor::to(c10::TensorOptions, bool, bool, std::optional<c10::MemoryFormat>) const' redeclared without dllimport attribute after being referenced with dll linkage
 4248 | inline at::Tensor Tensor::to(at::TensorOptions options, bool non_blocking, bool copy, ::std::optional<at::MemoryFormat> memory_format) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4258:19: warning: 'at::Tensor at::Tensor::to(c10::Device, c10::ScalarType, bool, bool, std::optional<c10::MemoryFormat>) const' redeclared without dllimport attribute after being referenced with dll linkage
 4258 | inline at::Tensor Tensor::to(at::Device device, at::ScalarType dtype, bool non_blocking, bool copy, ::std::optional<at::MemoryFormat> memory_format) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4263:19: warning: 'at::Tensor at::Tensor::to(c10::ScalarType, bool, bool, std::optional<c10::MemoryFormat>) const' redeclared without dllimport attribute after being referenced with dll linkage
 4263 | inline at::Tensor Tensor::to(at::ScalarType dtype, bool non_blocking, bool copy, ::std::optional<at::MemoryFormat> memory_format) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4273:19: warning: 'c10::Scalar at::Tensor::item() const' redeclared without dllimport attribute after being referenced with dll linkage
 4273 | inline at::Scalar Tensor::item() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4538:21: warning: 'at::Tensor& at::Tensor::bitwise_and_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 4538 | inline at::Tensor & Tensor::bitwise_and_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4578:21: warning: 'at::Tensor& at::Tensor::bitwise_or_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 4578 | inline at::Tensor & Tensor::bitwise_or_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4618:21: warning: 'at::Tensor& at::Tensor::bitwise_xor_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 4618 | inline at::Tensor & Tensor::bitwise_xor_(const at::Tensor & other) const {
      |                     ^~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/List.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/IListRef_inl.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/IListRef.h:631,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/WrapDimUtils.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/TensorNames.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/variable.h:11:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/jit_type_base.h:679:23: warning: inline function 'bool c10::operator==(const Type&, const Type&)' declared as dllimport: attribute ignored [-Wattributes]
  679 | TORCH_API inline bool operator==(const Type& lhs, const Type& rhs) {
      |                       ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:26,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue.h:1581,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/List_inl.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/List.h:488:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Logging.h:80:34: warning: inline function 'void c10::ThrowEnforceNotMet(const char*, int, const char*, detail::CompileTimeEmptyString, const void*)' declared as dllimport: attribute ignored [-Wattributes]
   80 | [[noreturn]] C10_API inline void ThrowEnforceNotMet(
      |                                  ^~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Logging.h:103:34: warning: inline function 'void c10::ThrowEnforceFiniteNotMet(const char*, int, const char*, detail::CompileTimeEmptyString, const void*)' declared as dllimport: attribute ignored [-Wattributes]
  103 | [[noreturn]] C10_API inline void ThrowEnforceFiniteNotMet(
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:155:29: warning: 'c10::complex<double> c10::IValue::toComplexDouble() const' redeclared without dllimport attribute after being referenced with dll linkage
  155 | inline c10::complex<double> IValue::toComplexDouble() const {
      |                             ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:183:26: warning: 'const at::Tensor& c10::IValue::toTensor() const &' redeclared without dllimport attribute after being referenced with dll linkage
  183 | inline const at::Tensor& IValue::toTensor() const& {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:245:20: warning: 'c10::SymInt c10::IValue::toSymInt() const &' redeclared without dllimport attribute after being referenced with dll linkage
  245 | inline c10::SymInt IValue::toSymInt() const& {
      |                    ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:261:22: warning: 'c10::SymFloat c10::IValue::toSymFloat() const &' redeclared without dllimport attribute after being referenced with dll linkage
  261 | inline c10::SymFloat IValue::toSymFloat() const& {
      |                      ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:278:21: warning: 'c10::SymBool c10::IValue::toSymBool() const &' redeclared without dllimport attribute after being referenced with dll linkage
  278 | inline c10::SymBool IValue::toSymBool() const& {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1962:27: warning: 'c10::List<long long int> c10::IValue::toIntList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 1962 | inline c10::List<int64_t> IValue::toIntList() && {
      |                           ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1966:27: warning: 'c10::List<long long int> c10::IValue::toIntList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 1966 | inline c10::List<int64_t> IValue::toIntList() const& {
      |                           ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1994:26: warning: 'c10::List<double> c10::IValue::toDoubleList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 1994 | inline c10::List<double> IValue::toDoubleList() && {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1998:26: warning: 'c10::List<double> c10::IValue::toDoubleList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 1998 | inline c10::List<double> IValue::toDoubleList() const& {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2010:40: warning: 'c10::List<c10::complex<double> > c10::IValue::toComplexDoubleList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2010 | inline c10::List<c10::complex<double>> IValue::toComplexDoubleList() && {
      |                                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2014:40: warning: 'c10::List<c10::complex<double> > c10::IValue::toComplexDoubleList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2014 | inline c10::List<c10::complex<double>> IValue::toComplexDoubleList() const& {
      |                                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2026:24: warning: 'c10::List<bool> c10::IValue::toBoolList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2026 | inline c10::List<bool> IValue::toBoolList() && {
      |                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2030:24: warning: 'c10::List<bool> c10::IValue::toBoolList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2030 | inline c10::List<bool> IValue::toBoolList() const& {
      |                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2034:30: warning: 'c10::List<at::Tensor> c10::IValue::toTensorList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2034 | inline c10::List<at::Tensor> IValue::toTensorList() && {
      |                              ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2038:30: warning: 'c10::List<at::Tensor> c10::IValue::toTensorList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2038 | inline c10::List<at::Tensor> IValue::toTensorList() const& {
      |                              ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2066:26: warning: 'c10::List<c10::IValue> c10::IValue::toList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2066 | inline c10::List<IValue> IValue::toList() && {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2070:26: warning: 'c10::List<c10::IValue> c10::IValue::toList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2070 | inline c10::List<IValue> IValue::toList() const& {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2082:34: warning: 'c10::Dict<c10::IValue, c10::IValue> c10::IValue::toGenericDict() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2082 | inline c10::Dict<IValue, IValue> IValue::toGenericDict() && {
      |                                  ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2086:34: warning: 'c10::Dict<c10::IValue, c10::IValue> c10::IValue::toGenericDict() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2086 | inline c10::Dict<IValue, IValue> IValue::toGenericDict() const& {
      |                                  ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2090:42: warning: 'c10::intrusive_ptr<c10::ivalue::Tuple> c10::IValue::toTuple() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2090 | inline c10::intrusive_ptr<ivalue::Tuple> IValue::toTuple() && {
      |                                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2094:42: warning: 'c10::intrusive_ptr<c10::ivalue::Tuple> c10::IValue::toTuple() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2094 | inline c10::intrusive_ptr<ivalue::Tuple> IValue::toTuple() const& {
      |                                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2098:23: warning: 'c10::ivalue::Tuple& c10::IValue::toTupleRef() const' redeclared without dllimport attribute after being referenced with dll linkage
 2098 | inline ivalue::Tuple& IValue::toTupleRef() const {
      |                       ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2137:8: warning: 'c10::IValue::IValue(std::string)' redeclared without dllimport attribute after being referenced with dll linkage
 2137 | inline IValue::IValue(std::string v)
      |        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2355:27: warning: 'const std::string& c10::IValue::toStringRef() const' redeclared without dllimport attribute after being referenced with dll linkage
 2355 | inline const std::string& IValue::toStringRef() const {
      |                           ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2378:25: warning: 'c10::string_view c10::IValue::toStringView() const' redeclared without dllimport attribute after being referenced with dll linkage
 2378 | inline c10::string_view IValue::toStringView() const {
      |                         ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:170:23: warning: inline function 'void at::namedinference::propagate_names(const at::TensorBase&, at::DimnameList, bool)' declared as dllimport: attribute ignored [-Wattributes]
  170 | TORCH_API inline void propagate_names(
      |                       ^~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:177:23: warning: inline function 'void at::namedinference::propagate_names_if_nonempty(const at::TensorBase&, at::DimnameList, bool)' declared as dllimport: attribute ignored [-Wattributes]
  177 | TORCH_API inline void propagate_names_if_nonempty(
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:185:23: warning: inline function 'void at::namedinference::propagate_names(const at::TensorBase&, const at::TensorBase&)' declared as dllimport: attribute ignored [-Wattributes]
  185 | TORCH_API inline void propagate_names(
      |                       ^~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/op_registration/infer_schema.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/library.h:61,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/autograd_not_implemented_fallback.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:4:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/function_schema.h:210:23: warning: 'dllimport' attribute ignored [-Wattributes]
  210 | enum struct TORCH_API SchemaArgType { input, output };
      |                       ^~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/library.h:63:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:717:13: warning: 'void c10::Dispatcher::callBoxed(const c10::OperatorHandle&, c10::Stack*) const' redeclared without dllimport attribute after being referenced with dll linkage
  717 | inline void Dispatcher::callBoxed(const OperatorHandle& op, Stack* stack) const {
      |             ^~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:751:13: warning: 'void c10::Dispatcher::callBoxedForDispatchKey(const c10::OperatorHandle&, c10::DispatchKey, c10::Stack*) const' redeclared without dllimport attribute after being referenced with dll linkage
  751 | inline void Dispatcher::callBoxedForDispatchKey(const OperatorHandle& op, DispatchKey dk, Stack* stack) const {
      |             ^~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:769:13: warning: 'void c10::Dispatcher::redispatchBoxed(const c10::OperatorHandle&, c10::DispatchKeySet, c10::Stack*) const' redeclared without dllimport attribute after being referenced with dll linkage
  769 | inline void Dispatcher::redispatchBoxed(const OperatorHandle& op, DispatchKeySet dispatchKeySet, Stack* stack) const {
      |             ^~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:59,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ExpandUtils.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/input_metadata.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/function.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/custom_function.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:5:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Context.h:34:22: warning: 'dllimport' attribute ignored [-Wattributes]
   34 | enum class TORCH_API Float32MatmulPrecision { HIGHEST, HIGH, MEDIUM };
      |                      ^~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:74:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ops/from_blob.h:8:23: warning: inline function 'void at::detail::noopDelete(void*)' declared as dllimport: attribute ignored [-Wattributes]
    8 | TORCH_API inline void noopDelete(void*) {}
      |                       ^~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1397:25: warning: inline function 'at::Tensor at::var(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1397 | TORCH_API inline Tensor var(const Tensor& self, int dim) {
      |                         ^~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1400:45: warning: inline function 'std::tuple<at::Tensor, at::Tensor> at::var_mean(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1400 | TORCH_API inline std::tuple<Tensor, Tensor> var_mean(const Tensor& self, int dim) {
      |                                             ^~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1403:25: warning: inline function 'at::Tensor at::std(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1403 | TORCH_API inline Tensor std(const Tensor& self, int dim) {
      |                         ^~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1406:45: warning: inline function 'std::tuple<at::Tensor, at::Tensor> at::std_mean(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1406 | TORCH_API inline std::tuple<Tensor, Tensor> std_mean(const Tensor& self, int dim) {
      |                                             ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/function_impl.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/method.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/object.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/module.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers/serialize.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/all.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/ir/ir.h:302:42: error: function 'std::shared_ptr<torch::jit::Wrap<torch::jit::Value> > torch::jit::Value::wrap()' definition is marked dllimport
  302 |   TORCH_API std::shared_ptr<Wrap<Value>> wrap() {
      |                                          ^~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/ir/ir.h:1138:42: error: function 'std::shared_ptr<torch::jit::Wrap<torch::jit::Block> > torch::jit::Block::wrap()' definition is marked dllimport
 1138 |   TORCH_API std::shared_ptr<Wrap<Block>> wrap() {
      |                                          ^~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/profiler_kineto.h:9,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/profiler.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/profiler/util.h:46:23: warning: inline function 'void torch::profiler::impl::logSoftAssert(const char*, const char*, uint32_t, const char*, c10::detail::CompileTimeEmptyString)' declared as dllimport: attribute ignored [-Wattributes]
   46 | TORCH_API inline void logSoftAssert(
      |                       ^~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/Exceptions.h:16,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/python.h:11,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/extension.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:34:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<at::Tensor>' has already been declared with a different visibility
   34 | struct TORCH_PYTHON_API type_caster<at::Tensor> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:95:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::ArrayRef<long long int> >' has already been declared with a different visibility
   95 | struct TORCH_PYTHON_API type_caster<at::IntArrayRef> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:111:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::ArrayRef<c10::SymInt> >' has already been declared with a different visibility
  111 | struct TORCH_PYTHON_API type_caster<at::SymIntArrayRef> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:127:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::ArrayRef<c10::intrusive_ptr<c10::SymNodeImpl> > >' has already been declared with a different visibility
  127 | struct TORCH_PYTHON_API type_caster<at::ArrayRef<c10::SymNode>> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:282:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::Scalar>' has already been declared with a different visibility
  282 | struct TORCH_PYTHON_API type_caster<c10::Scalar> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:296:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::SymInt>' has already been declared with a different visibility
  296 | struct TORCH_PYTHON_API type_caster<c10::SymInt> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:308:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::SymFloat>' has already been declared with a different visibility
  308 | struct TORCH_PYTHON_API type_caster<c10::SymFloat> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:320:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::SymBool>' has already been declared with a different visibility
  320 | struct TORCH_PYTHON_API type_caster<c10::SymBool> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
[2/13] Building CXX object CMakeFiles/natten.dir/autogen/src/cpu/naive/source_1.cpp.obj
FAILED: CMakeFiles/natten.dir/autogen/src/cpu/naive/source_1.cpp.obj
C:\Users\hp\mingw64\bin\c++.exe -DAVX_INT -DNATTEN_WINDOWS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=libnatten -D_GLIBCXX_USE_CXX11_ABI=0 -Dnatten_EXPORTS -IC:/Users/hp/AppData/Local/Programs/Python/Python312/include -IC:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include -IC:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include -IC:/Users/hp/Downloads/NATTEN/csrc/./include -IC:/Users/hp/Downloads/NATTEN/csrc/./autogen/include -std=c++17 /MP /Zc:lambda /Zc:preprocessor -O3 -DNDEBUG -O3 /MP /Zc:lambda /Zc:preprocessor -std=gnu++17 -MD -MT CMakeFiles/natten.dir/autogen/src/cpu/naive/source_1.cpp.obj -MF CMakeFiles\natten.dir\autogen\src\cpu\naive\source_1.cpp.obj.d -o CMakeFiles/natten.dir/autogen/src/cpu/naive/source_1.cpp.obj -c C:/Users/hp/Downloads/NATTEN/csrc/autogen/src/cpu/naive/source_1.cpp
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/BlasBackend.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Context.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ATen.h:7,
                 from C:/Users/hp/Downloads/NATTEN/csrc/include/natten/cpu/naive/inverse_neighborhood_1d.hpp:32,
                 from C:/Users/hp/Downloads/NATTEN/csrc/autogen/src/cpu/naive/source_1.cpp:2:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Exception.h:458:28: warning: inline function 'const char* c10::detail::torchCheckMsgImpl(const char*)' declared as dllimport: attribute ignored [-Wattributes]
  458 | inline C10_API const char* torchCheckMsgImpl(const char* msg) {
      |                            ^~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Exception.h:462:28: warning: inline function 'const char* c10::detail::torchCheckMsgImpl(const char*, const char*)' declared as dllimport: attribute ignored [-Wattributes]
  462 | inline C10_API const char* torchCheckMsgImpl(
      |                            ^~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Exception.h:506:34: warning: inline function 'void c10::detail::torchInternalAssertFail(const char*, const char*, uint32_t, const char*, CompileTimeEmptyString)' declared as dllimport: attribute ignored [-Wattributes]
  506 | [[noreturn]] inline C10_API void torchInternalAssertFail(
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/Generator.h:11,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/CPUGeneratorImpl.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Context.h:4:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/DispatchKeySet.h:633:20: warning: inline function 'int c10::getDispatchTableIndexForDispatchKey(DispatchKey)' declared as dllimport: attribute ignored [-Wattributes]
  633 | C10_API inline int getDispatchTableIndexForDispatchKey(DispatchKey k) {
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/InferenceMode.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/TensorImpl.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/GeneratorImpl.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/Generator.h:18:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/impl/LocalDispatchKeySet.h:70:36: warning: inline function 'c10::impl::LocalDispatchKeySet c10::impl::tls_local_dispatch_key_set()' declared as dllimport: attribute ignored [-Wattributes]
   70 | inline C10_API LocalDispatchKeySet tls_local_dispatch_key_set() {
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/TensorImpl.h:11:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/BFloat16.h:124:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const BFloat16&)' declared as dllimport: attribute ignored [-Wattributes]
  124 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:6:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e4m3fn.h:231:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e4m3fn&)' declared as dllimport: attribute ignored [-Wattributes]
  231 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:7:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e4m3fnuz.h:130:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e4m3fnuz&)' declared as dllimport: attribute ignored [-Wattributes]
  130 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e5m2.h:17,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:8:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Half.h:528:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Half&)' declared as dllimport: attribute ignored [-Wattributes]
  528 | C10_API inline std::ostream& operator<<(std::ostream& out, const Half& value) {
      |                              ^~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e5m2.h:139:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e5m2&)' declared as dllimport: attribute ignored [-Wattributes]
  139 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e5m2fnuz.h:129:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e5m2fnuz&)' declared as dllimport: attribute ignored [-Wattributes]
  129 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/Storage.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/TensorImpl.h:13:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/StorageImpl.h:263:15: warning: 'void c10::impl::cow::materialize_cow_storage(c10::StorageImpl&)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
  263 |   friend void c10::impl::cow::materialize_cow_storage(StorageImpl& storage);
      |               ^~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Context.h:34:22: warning: 'dllimport' attribute ignored [-Wattributes]
   34 | enum class TORCH_API Float32MatmulPrecision { HIGHEST, HIGH, MEDIUM };
      |                      ^~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/List.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/IListRef_inl.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/IListRef.h:631,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/DeviceGuard.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ATen.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/jit_type_base.h:679:23: warning: inline function 'bool c10::operator==(const Type&, const Type&)' declared as dllimport: attribute ignored [-Wattributes]
  679 | TORCH_API inline bool operator==(const Type& lhs, const Type& rhs) {
      |                       ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/List_inl.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/List.h:488:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1603:19: warning: 'at::Tensor at::Tensor::_conj() const' redeclared without dllimport attribute after being referenced with dll linkage
 1603 | inline at::Tensor Tensor::_conj() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1618:19: warning: 'at::Tensor at::Tensor::conj_physical() const' redeclared without dllimport attribute after being referenced with dll linkage
 1618 | inline at::Tensor Tensor::conj_physical() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1668:21: warning: 'at::Tensor& at::Tensor::add_(const at::Tensor&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 1668 | inline at::Tensor & Tensor::add_(const at::Tensor & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1678:21: warning: 'at::Tensor& at::Tensor::add_(const c10::Scalar&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 1678 | inline at::Tensor & Tensor::add_(const at::Scalar & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1913:19: warning: 'at::Tensor at::Tensor::bitwise_not() const' redeclared without dllimport attribute after being referenced with dll linkage
 1913 | inline at::Tensor Tensor::bitwise_not() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2133:21: warning: 'at::Tensor& at::Tensor::copy_(const at::Tensor&, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
 2133 | inline at::Tensor & Tensor::copy_(const at::Tensor & src, bool non_blocking) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2273:21: warning: 'at::Tensor& at::Tensor::div_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 2273 | inline at::Tensor & Tensor::div_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2293:21: warning: 'at::Tensor& at::Tensor::div_(const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 2293 | inline at::Tensor & Tensor::div_(const at::Scalar & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2593:21: warning: 'at::Tensor& at::Tensor::fill_(const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 2593 | inline at::Tensor & Tensor::fill_(const at::Scalar & value) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3018:21: warning: 'at::Tensor& at::Tensor::mul_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3018 | inline at::Tensor & Tensor::mul_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3028:21: warning: 'at::Tensor& at::Tensor::mul_(const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3028 | inline at::Tensor & Tensor::mul_(const at::Scalar & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3198:19: warning: 'at::Tensor at::Tensor::neg() const' redeclared without dllimport attribute after being referenced with dll linkage
 3198 | inline at::Tensor Tensor::neg() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3333:19: warning: 'at::Tensor at::Tensor::select(int64_t, int64_t) const' redeclared without dllimport attribute after being referenced with dll linkage
 3333 | inline at::Tensor Tensor::select(int64_t dim, int64_t index) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3683:19: warning: 'at::Tensor at::Tensor::std(at::OptionalIntArrayRef, const std::optional<c10::Scalar>&, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
 3683 | inline at::Tensor Tensor::std(at::OptionalIntArrayRef dim, const ::std::optional<at::Scalar> & correction, bool keepdim) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3858:19: warning: 'at::Tensor at::Tensor::var(at::OptionalIntArrayRef, const std::optional<c10::Scalar>&, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
 3858 | inline at::Tensor Tensor::var(at::OptionalIntArrayRef dim, const ::std::optional<at::Scalar> & correction, bool keepdim) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3953:21: warning: 'at::Tensor& at::Tensor::sub_(const at::Tensor&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3953 | inline at::Tensor & Tensor::sub_(const at::Tensor & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3963:21: warning: 'at::Tensor& at::Tensor::sub_(const c10::Scalar&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3963 | inline at::Tensor & Tensor::sub_(const at::Scalar & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4248:19: warning: 'at::Tensor at::Tensor::to(c10::TensorOptions, bool, bool, std::optional<c10::MemoryFormat>) const' redeclared without dllimport attribute after being referenced with dll linkage
 4248 | inline at::Tensor Tensor::to(at::TensorOptions options, bool non_blocking, bool copy, ::std::optional<at::MemoryFormat> memory_format) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4258:19: warning: 'at::Tensor at::Tensor::to(c10::Device, c10::ScalarType, bool, bool, std::optional<c10::MemoryFormat>) const' redeclared without dllimport attribute after being referenced with dll linkage
 4258 | inline at::Tensor Tensor::to(at::Device device, at::ScalarType dtype, bool non_blocking, bool copy, ::std::optional<at::MemoryFormat> memory_format) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4263:19: warning: 'at::Tensor at::Tensor::to(c10::ScalarType, bool, bool, std::optional<c10::MemoryFormat>) const' redeclared without dllimport attribute after being referenced with dll linkage
 4263 | inline at::Tensor Tensor::to(at::ScalarType dtype, bool non_blocking, bool copy, ::std::optional<at::MemoryFormat> memory_format) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4273:19: warning: 'c10::Scalar at::Tensor::item() const' redeclared without dllimport attribute after being referenced with dll linkage
 4273 | inline at::Scalar Tensor::item() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4538:21: warning: 'at::Tensor& at::Tensor::bitwise_and_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 4538 | inline at::Tensor & Tensor::bitwise_and_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4578:21: warning: 'at::Tensor& at::Tensor::bitwise_or_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 4578 | inline at::Tensor & Tensor::bitwise_or_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4618:21: warning: 'at::Tensor& at::Tensor::bitwise_xor_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 4618 | inline at::Tensor & Tensor::bitwise_xor_(const at::Tensor & other) const {
      |                     ^~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:26,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue.h:1581:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Logging.h:80:34: warning: inline function 'void c10::ThrowEnforceNotMet(const char*, int, const char*, detail::CompileTimeEmptyString, const void*)' declared as dllimport: attribute ignored [-Wattributes]
   80 | [[noreturn]] C10_API inline void ThrowEnforceNotMet(
      |                                  ^~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Logging.h:103:34: warning: inline function 'void c10::ThrowEnforceFiniteNotMet(const char*, int, const char*, detail::CompileTimeEmptyString, const void*)' declared as dllimport: attribute ignored [-Wattributes]
  103 | [[noreturn]] C10_API inline void ThrowEnforceFiniteNotMet(
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:155:29: warning: 'c10::complex<double> c10::IValue::toComplexDouble() const' redeclared without dllimport attribute after being referenced with dll linkage
  155 | inline c10::complex<double> IValue::toComplexDouble() const {
      |                             ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:183:26: warning: 'const at::Tensor& c10::IValue::toTensor() const &' redeclared without dllimport attribute after being referenced with dll linkage
  183 | inline const at::Tensor& IValue::toTensor() const& {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:245:20: warning: 'c10::SymInt c10::IValue::toSymInt() const &' redeclared without dllimport attribute after being referenced with dll linkage
  245 | inline c10::SymInt IValue::toSymInt() const& {
      |                    ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:261:22: warning: 'c10::SymFloat c10::IValue::toSymFloat() const &' redeclared without dllimport attribute after being referenced with dll linkage
  261 | inline c10::SymFloat IValue::toSymFloat() const& {
      |                      ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:278:21: warning: 'c10::SymBool c10::IValue::toSymBool() const &' redeclared without dllimport attribute after being referenced with dll linkage
  278 | inline c10::SymBool IValue::toSymBool() const& {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1962:27: warning: 'c10::List<long long int> c10::IValue::toIntList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 1962 | inline c10::List<int64_t> IValue::toIntList() && {
      |                           ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1966:27: warning: 'c10::List<long long int> c10::IValue::toIntList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 1966 | inline c10::List<int64_t> IValue::toIntList() const& {
      |                           ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1994:26: warning: 'c10::List<double> c10::IValue::toDoubleList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 1994 | inline c10::List<double> IValue::toDoubleList() && {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1998:26: warning: 'c10::List<double> c10::IValue::toDoubleList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 1998 | inline c10::List<double> IValue::toDoubleList() const& {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2010:40: warning: 'c10::List<c10::complex<double> > c10::IValue::toComplexDoubleList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2010 | inline c10::List<c10::complex<double>> IValue::toComplexDoubleList() && {
      |                                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2014:40: warning: 'c10::List<c10::complex<double> > c10::IValue::toComplexDoubleList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2014 | inline c10::List<c10::complex<double>> IValue::toComplexDoubleList() const& {
      |                                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2026:24: warning: 'c10::List<bool> c10::IValue::toBoolList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2026 | inline c10::List<bool> IValue::toBoolList() && {
      |                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2030:24: warning: 'c10::List<bool> c10::IValue::toBoolList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2030 | inline c10::List<bool> IValue::toBoolList() const& {
      |                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2034:30: warning: 'c10::List<at::Tensor> c10::IValue::toTensorList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2034 | inline c10::List<at::Tensor> IValue::toTensorList() && {
      |                              ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2038:30: warning: 'c10::List<at::Tensor> c10::IValue::toTensorList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2038 | inline c10::List<at::Tensor> IValue::toTensorList() const& {
      |                              ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2066:26: warning: 'c10::List<c10::IValue> c10::IValue::toList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2066 | inline c10::List<IValue> IValue::toList() && {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2070:26: warning: 'c10::List<c10::IValue> c10::IValue::toList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2070 | inline c10::List<IValue> IValue::toList() const& {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2082:34: warning: 'c10::Dict<c10::IValue, c10::IValue> c10::IValue::toGenericDict() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2082 | inline c10::Dict<IValue, IValue> IValue::toGenericDict() && {
      |                                  ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2086:34: warning: 'c10::Dict<c10::IValue, c10::IValue> c10::IValue::toGenericDict() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2086 | inline c10::Dict<IValue, IValue> IValue::toGenericDict() const& {
      |                                  ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2090:42: warning: 'c10::intrusive_ptr<c10::ivalue::Tuple> c10::IValue::toTuple() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2090 | inline c10::intrusive_ptr<ivalue::Tuple> IValue::toTuple() && {
      |                                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2094:42: warning: 'c10::intrusive_ptr<c10::ivalue::Tuple> c10::IValue::toTuple() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2094 | inline c10::intrusive_ptr<ivalue::Tuple> IValue::toTuple() const& {
      |                                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2098:23: warning: 'c10::ivalue::Tuple& c10::IValue::toTupleRef() const' redeclared without dllimport attribute after being referenced with dll linkage
 2098 | inline ivalue::Tuple& IValue::toTupleRef() const {
      |                       ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2137:8: warning: 'c10::IValue::IValue(std::string)' redeclared without dllimport attribute after being referenced with dll linkage
 2137 | inline IValue::IValue(std::string v)
      |        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2355:27: warning: 'const std::string& c10::IValue::toStringRef() const' redeclared without dllimport attribute after being referenced with dll linkage
 2355 | inline const std::string& IValue::toStringRef() const {
      |                           ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2378:25: warning: 'c10::string_view c10::IValue::toStringView() const' redeclared without dllimport attribute after being referenced with dll linkage
 2378 | inline c10::string_view IValue::toStringView() const {
      |                         ^~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:74,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ATen.h:13:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ops/from_blob.h:8:23: warning: inline function 'void at::detail::noopDelete(void*)' declared as dllimport: attribute ignored [-Wattributes]
    8 | TORCH_API inline void noopDelete(void*) {}
      |                       ^~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1397:25: warning: inline function 'at::Tensor at::var(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1397 | TORCH_API inline Tensor var(const Tensor& self, int dim) {
      |                         ^~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1400:45: warning: inline function 'std::tuple<at::Tensor, at::Tensor> at::var_mean(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1400 | TORCH_API inline std::tuple<Tensor, Tensor> var_mean(const Tensor& self, int dim) {
      |                                             ^~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1403:25: warning: inline function 'at::Tensor at::std(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1403 | TORCH_API inline Tensor std(const Tensor& self, int dim) {
      |                         ^~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1406:45: warning: inline function 'std::tuple<at::Tensor, at::Tensor> at::std_mean(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1406 | TORCH_API inline std::tuple<Tensor, Tensor> std_mean(const Tensor& self, int dim) {
      |                                             ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/variable.h:11,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/extension.h:5,
                 from C:/Users/hp/Downloads/NATTEN/csrc/include/natten/cpu/naive/inverse_neighborhood_1d.hpp:34:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:170:23: warning: inline function 'void at::namedinference::propagate_names(const at::TensorBase&, at::DimnameList, bool)' declared as dllimport: attribute ignored [-Wattributes]
  170 | TORCH_API inline void propagate_names(
      |                       ^~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:177:23: warning: inline function 'void at::namedinference::propagate_names_if_nonempty(const at::TensorBase&, at::DimnameList, bool)' declared as dllimport: attribute ignored [-Wattributes]
  177 | TORCH_API inline void propagate_names_if_nonempty(
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:185:23: warning: inline function 'void at::namedinference::propagate_names(const at::TensorBase&, const at::TensorBase&)' declared as dllimport: attribute ignored [-Wattributes]
  185 | TORCH_API inline void propagate_names(
      |                       ^~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/op_registration/infer_schema.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/library.h:61,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/autograd_not_implemented_fallback.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:4:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/function_schema.h:210:23: warning: 'dllimport' attribute ignored [-Wattributes]
  210 | enum struct TORCH_API SchemaArgType { input, output };
      |                       ^~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/library.h:63:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:717:13: warning: 'void c10::Dispatcher::callBoxed(const c10::OperatorHandle&, c10::Stack*) const' redeclared without dllimport attribute after being referenced with dll linkage
  717 | inline void Dispatcher::callBoxed(const OperatorHandle& op, Stack* stack) const {
      |             ^~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:751:13: warning: 'void c10::Dispatcher::callBoxedForDispatchKey(const c10::OperatorHandle&, c10::DispatchKey, c10::Stack*) const' redeclared without dllimport attribute after being referenced with dll linkage
  751 | inline void Dispatcher::callBoxedForDispatchKey(const OperatorHandle& op, DispatchKey dk, Stack* stack) const {
      |             ^~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:769:13: warning: 'void c10::Dispatcher::redispatchBoxed(const c10::OperatorHandle&, c10::DispatchKeySet, c10::Stack*) const' redeclared without dllimport attribute after being referenced with dll linkage
  769 | inline void Dispatcher::redispatchBoxed(const OperatorHandle& op, DispatchKeySet dispatchKeySet, Stack* stack) const {
      |             ^~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/function_impl.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/method.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/object.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/module.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers/serialize.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/all.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/ir/ir.h:302:42: error: function 'std::shared_ptr<torch::jit::Wrap<torch::jit::Value> > torch::jit::Value::wrap()' definition is marked dllimport
  302 |   TORCH_API std::shared_ptr<Wrap<Value>> wrap() {
      |                                          ^~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/ir/ir.h:1138:42: error: function 'std::shared_ptr<torch::jit::Wrap<torch::jit::Block> > torch::jit::Block::wrap()' definition is marked dllimport
 1138 |   TORCH_API std::shared_ptr<Wrap<Block>> wrap() {
      |                                          ^~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/profiler_kineto.h:9,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/profiler.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/profiler/util.h:46:23: warning: inline function 'void torch::profiler::impl::logSoftAssert(const char*, const char*, uint32_t, const char*, c10::detail::CompileTimeEmptyString)' declared as dllimport: attribute ignored [-Wattributes]
   46 | TORCH_API inline void logSoftAssert(
      |                       ^~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/Exceptions.h:16,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/python.h:11,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/extension.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:34:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<at::Tensor>' has already been declared with a different visibility
   34 | struct TORCH_PYTHON_API type_caster<at::Tensor> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:95:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::ArrayRef<long long int> >' has already been declared with a different visibility
   95 | struct TORCH_PYTHON_API type_caster<at::IntArrayRef> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:111:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::ArrayRef<c10::SymInt> >' has already been declared with a different visibility
  111 | struct TORCH_PYTHON_API type_caster<at::SymIntArrayRef> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:127:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::ArrayRef<c10::intrusive_ptr<c10::SymNodeImpl> > >' has already been declared with a different visibility
  127 | struct TORCH_PYTHON_API type_caster<at::ArrayRef<c10::SymNode>> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:282:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::Scalar>' has already been declared with a different visibility
  282 | struct TORCH_PYTHON_API type_caster<c10::Scalar> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:296:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::SymInt>' has already been declared with a different visibility
  296 | struct TORCH_PYTHON_API type_caster<c10::SymInt> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:308:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::SymFloat>' has already been declared with a different visibility
  308 | struct TORCH_PYTHON_API type_caster<c10::SymFloat> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:320:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::SymBool>' has already been declared with a different visibility
  320 | struct TORCH_PYTHON_API type_caster<c10::SymBool> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/13] Building CXX object CMakeFiles/natten.dir/autogen/src/cpu/naive/source_0.cpp.obj
FAILED: CMakeFiles/natten.dir/autogen/src/cpu/naive/source_0.cpp.obj
C:\Users\hp\mingw64\bin\c++.exe -DAVX_INT -DNATTEN_WINDOWS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=libnatten -D_GLIBCXX_USE_CXX11_ABI=0 -Dnatten_EXPORTS -IC:/Users/hp/AppData/Local/Programs/Python/Python312/include -IC:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include -IC:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include -IC:/Users/hp/Downloads/NATTEN/csrc/./include -IC:/Users/hp/Downloads/NATTEN/csrc/./autogen/include -std=c++17 /MP /Zc:lambda /Zc:preprocessor -O3 -DNDEBUG -O3 /MP /Zc:lambda /Zc:preprocessor -std=gnu++17 -MD -MT CMakeFiles/natten.dir/autogen/src/cpu/naive/source_0.cpp.obj -MF CMakeFiles\natten.dir\autogen\src\cpu\naive\source_0.cpp.obj.d -o CMakeFiles/natten.dir/autogen/src/cpu/naive/source_0.cpp.obj -c C:/Users/hp/Downloads/NATTEN/csrc/autogen/src/cpu/naive/source_0.cpp
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/BlasBackend.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Context.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ATen.h:7,
                 from C:/Users/hp/Downloads/NATTEN/csrc/include/natten/cpu/naive/neighborhood_neighborhood_1d.hpp:32,
                 from C:/Users/hp/Downloads/NATTEN/csrc/autogen/src/cpu/naive/source_0.cpp:2:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Exception.h:458:28: warning: inline function 'const char* c10::detail::torchCheckMsgImpl(const char*)' declared as dllimport: attribute ignored [-Wattributes]
  458 | inline C10_API const char* torchCheckMsgImpl(const char* msg) {
      |                            ^~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Exception.h:462:28: warning: inline function 'const char* c10::detail::torchCheckMsgImpl(const char*, const char*)' declared as dllimport: attribute ignored [-Wattributes]
  462 | inline C10_API const char* torchCheckMsgImpl(
      |                            ^~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Exception.h:506:34: warning: inline function 'void c10::detail::torchInternalAssertFail(const char*, const char*, uint32_t, const char*, CompileTimeEmptyString)' declared as dllimport: attribute ignored [-Wattributes]
  506 | [[noreturn]] inline C10_API void torchInternalAssertFail(
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/Generator.h:11,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/CPUGeneratorImpl.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Context.h:4:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/DispatchKeySet.h:633:20: warning: inline function 'int c10::getDispatchTableIndexForDispatchKey(DispatchKey)' declared as dllimport: attribute ignored [-Wattributes]
  633 | C10_API inline int getDispatchTableIndexForDispatchKey(DispatchKey k) {
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/InferenceMode.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/TensorImpl.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/GeneratorImpl.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/Generator.h:18:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/impl/LocalDispatchKeySet.h:70:36: warning: inline function 'c10::impl::LocalDispatchKeySet c10::impl::tls_local_dispatch_key_set()' declared as dllimport: attribute ignored [-Wattributes]
   70 | inline C10_API LocalDispatchKeySet tls_local_dispatch_key_set() {
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/TensorImpl.h:11:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/BFloat16.h:124:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const BFloat16&)' declared as dllimport: attribute ignored [-Wattributes]
  124 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:6:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e4m3fn.h:231:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e4m3fn&)' declared as dllimport: attribute ignored [-Wattributes]
  231 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:7:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e4m3fnuz.h:130:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e4m3fnuz&)' declared as dllimport: attribute ignored [-Wattributes]
  130 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e5m2.h:17,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:8:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Half.h:528:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Half&)' declared as dllimport: attribute ignored [-Wattributes]
  528 | C10_API inline std::ostream& operator<<(std::ostream& out, const Half& value) {
      |                              ^~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e5m2.h:139:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e5m2&)' declared as dllimport: attribute ignored [-Wattributes]
  139 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/ScalarType.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Float8_e5m2fnuz.h:129:30: warning: inline function 'std::ostream& c10::operator<<(std::ostream&, const Float8_e5m2fnuz&)' declared as dllimport: attribute ignored [-Wattributes]
  129 | C10_API inline std::ostream& operator<<(
      |                              ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/Storage.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/TensorImpl.h:13:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/core/StorageImpl.h:263:15: warning: 'void c10::impl::cow::materialize_cow_storage(c10::StorageImpl&)' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
  263 |   friend void c10::impl::cow::materialize_cow_storage(StorageImpl& storage);
      |               ^~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Context.h:34:22: warning: 'dllimport' attribute ignored [-Wattributes]
   34 | enum class TORCH_API Float32MatmulPrecision { HIGHEST, HIGH, MEDIUM };
      |                      ^~~~~~~~~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/List.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/IListRef_inl.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/IListRef.h:631,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/DeviceGuard.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ATen.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/jit_type_base.h:679:23: warning: inline function 'bool c10::operator==(const Type&, const Type&)' declared as dllimport: attribute ignored [-Wattributes]
  679 | TORCH_API inline bool operator==(const Type& lhs, const Type& rhs) {
      |                       ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/List_inl.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/List.h:488:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1603:19: warning: 'at::Tensor at::Tensor::_conj() const' redeclared without dllimport attribute after being referenced with dll linkage
 1603 | inline at::Tensor Tensor::_conj() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1618:19: warning: 'at::Tensor at::Tensor::conj_physical() const' redeclared without dllimport attribute after being referenced with dll linkage
 1618 | inline at::Tensor Tensor::conj_physical() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1668:21: warning: 'at::Tensor& at::Tensor::add_(const at::Tensor&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 1668 | inline at::Tensor & Tensor::add_(const at::Tensor & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1678:21: warning: 'at::Tensor& at::Tensor::add_(const c10::Scalar&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 1678 | inline at::Tensor & Tensor::add_(const at::Scalar & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:1913:19: warning: 'at::Tensor at::Tensor::bitwise_not() const' redeclared without dllimport attribute after being referenced with dll linkage
 1913 | inline at::Tensor Tensor::bitwise_not() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2133:21: warning: 'at::Tensor& at::Tensor::copy_(const at::Tensor&, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
 2133 | inline at::Tensor & Tensor::copy_(const at::Tensor & src, bool non_blocking) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2273:21: warning: 'at::Tensor& at::Tensor::div_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 2273 | inline at::Tensor & Tensor::div_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2293:21: warning: 'at::Tensor& at::Tensor::div_(const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 2293 | inline at::Tensor & Tensor::div_(const at::Scalar & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:2593:21: warning: 'at::Tensor& at::Tensor::fill_(const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 2593 | inline at::Tensor & Tensor::fill_(const at::Scalar & value) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3018:21: warning: 'at::Tensor& at::Tensor::mul_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3018 | inline at::Tensor & Tensor::mul_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3028:21: warning: 'at::Tensor& at::Tensor::mul_(const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3028 | inline at::Tensor & Tensor::mul_(const at::Scalar & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3198:19: warning: 'at::Tensor at::Tensor::neg() const' redeclared without dllimport attribute after being referenced with dll linkage
 3198 | inline at::Tensor Tensor::neg() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3333:19: warning: 'at::Tensor at::Tensor::select(int64_t, int64_t) const' redeclared without dllimport attribute after being referenced with dll linkage
 3333 | inline at::Tensor Tensor::select(int64_t dim, int64_t index) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3683:19: warning: 'at::Tensor at::Tensor::std(at::OptionalIntArrayRef, const std::optional<c10::Scalar>&, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
 3683 | inline at::Tensor Tensor::std(at::OptionalIntArrayRef dim, const ::std::optional<at::Scalar> & correction, bool keepdim) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3858:19: warning: 'at::Tensor at::Tensor::var(at::OptionalIntArrayRef, const std::optional<c10::Scalar>&, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
 3858 | inline at::Tensor Tensor::var(at::OptionalIntArrayRef dim, const ::std::optional<at::Scalar> & correction, bool keepdim) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3953:21: warning: 'at::Tensor& at::Tensor::sub_(const at::Tensor&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3953 | inline at::Tensor & Tensor::sub_(const at::Tensor & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:3963:21: warning: 'at::Tensor& at::Tensor::sub_(const c10::Scalar&, const c10::Scalar&) const' redeclared without dllimport attribute after being referenced with dll linkage
 3963 | inline at::Tensor & Tensor::sub_(const at::Scalar & other, const at::Scalar & alpha) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4248:19: warning: 'at::Tensor at::Tensor::to(c10::TensorOptions, bool, bool, std::optional<c10::MemoryFormat>) const' redeclared without dllimport attribute after being referenced with dll linkage
 4248 | inline at::Tensor Tensor::to(at::TensorOptions options, bool non_blocking, bool copy, ::std::optional<at::MemoryFormat> memory_format) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4258:19: warning: 'at::Tensor at::Tensor::to(c10::Device, c10::ScalarType, bool, bool, std::optional<c10::MemoryFormat>) const' redeclared without dllimport attribute after being referenced with dll linkage
 4258 | inline at::Tensor Tensor::to(at::Device device, at::ScalarType dtype, bool non_blocking, bool copy, ::std::optional<at::MemoryFormat> memory_format) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4263:19: warning: 'at::Tensor at::Tensor::to(c10::ScalarType, bool, bool, std::optional<c10::MemoryFormat>) const' redeclared without dllimport attribute after being referenced with dll linkage
 4263 | inline at::Tensor Tensor::to(at::ScalarType dtype, bool non_blocking, bool copy, ::std::optional<at::MemoryFormat> memory_format) const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4273:19: warning: 'c10::Scalar at::Tensor::item() const' redeclared without dllimport attribute after being referenced with dll linkage
 4273 | inline at::Scalar Tensor::item() const {
      |                   ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4538:21: warning: 'at::Tensor& at::Tensor::bitwise_and_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 4538 | inline at::Tensor & Tensor::bitwise_and_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4578:21: warning: 'at::Tensor& at::Tensor::bitwise_or_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 4578 | inline at::Tensor & Tensor::bitwise_or_(const at::Tensor & other) const {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/TensorBody.h:4618:21: warning: 'at::Tensor& at::Tensor::bitwise_xor_(const at::Tensor&) const' redeclared without dllimport attribute after being referenced with dll linkage
 4618 | inline at::Tensor & Tensor::bitwise_xor_(const at::Tensor & other) const {
      |                     ^~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:26,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue.h:1581:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Logging.h:80:34: warning: inline function 'void c10::ThrowEnforceNotMet(const char*, int, const char*, detail::CompileTimeEmptyString, const void*)' declared as dllimport: attribute ignored [-Wattributes]
   80 | [[noreturn]] C10_API inline void ThrowEnforceNotMet(
      |                                  ^~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/c10/util/Logging.h:103:34: warning: inline function 'void c10::ThrowEnforceFiniteNotMet(const char*, int, const char*, detail::CompileTimeEmptyString, const void*)' declared as dllimport: attribute ignored [-Wattributes]
  103 | [[noreturn]] C10_API inline void ThrowEnforceFiniteNotMet(
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:155:29: warning: 'c10::complex<double> c10::IValue::toComplexDouble() const' redeclared without dllimport attribute after being referenced with dll linkage
  155 | inline c10::complex<double> IValue::toComplexDouble() const {
      |                             ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:183:26: warning: 'const at::Tensor& c10::IValue::toTensor() const &' redeclared without dllimport attribute after being referenced with dll linkage
  183 | inline const at::Tensor& IValue::toTensor() const& {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:245:20: warning: 'c10::SymInt c10::IValue::toSymInt() const &' redeclared without dllimport attribute after being referenced with dll linkage
  245 | inline c10::SymInt IValue::toSymInt() const& {
      |                    ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:261:22: warning: 'c10::SymFloat c10::IValue::toSymFloat() const &' redeclared without dllimport attribute after being referenced with dll linkage
  261 | inline c10::SymFloat IValue::toSymFloat() const& {
      |                      ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:278:21: warning: 'c10::SymBool c10::IValue::toSymBool() const &' redeclared without dllimport attribute after being referenced with dll linkage
  278 | inline c10::SymBool IValue::toSymBool() const& {
      |                     ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1962:27: warning: 'c10::List<long long int> c10::IValue::toIntList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 1962 | inline c10::List<int64_t> IValue::toIntList() && {
      |                           ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1966:27: warning: 'c10::List<long long int> c10::IValue::toIntList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 1966 | inline c10::List<int64_t> IValue::toIntList() const& {
      |                           ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1994:26: warning: 'c10::List<double> c10::IValue::toDoubleList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 1994 | inline c10::List<double> IValue::toDoubleList() && {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:1998:26: warning: 'c10::List<double> c10::IValue::toDoubleList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 1998 | inline c10::List<double> IValue::toDoubleList() const& {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2010:40: warning: 'c10::List<c10::complex<double> > c10::IValue::toComplexDoubleList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2010 | inline c10::List<c10::complex<double>> IValue::toComplexDoubleList() && {
      |                                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2014:40: warning: 'c10::List<c10::complex<double> > c10::IValue::toComplexDoubleList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2014 | inline c10::List<c10::complex<double>> IValue::toComplexDoubleList() const& {
      |                                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2026:24: warning: 'c10::List<bool> c10::IValue::toBoolList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2026 | inline c10::List<bool> IValue::toBoolList() && {
      |                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2030:24: warning: 'c10::List<bool> c10::IValue::toBoolList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2030 | inline c10::List<bool> IValue::toBoolList() const& {
      |                        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2034:30: warning: 'c10::List<at::Tensor> c10::IValue::toTensorList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2034 | inline c10::List<at::Tensor> IValue::toTensorList() && {
      |                              ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2038:30: warning: 'c10::List<at::Tensor> c10::IValue::toTensorList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2038 | inline c10::List<at::Tensor> IValue::toTensorList() const& {
      |                              ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2066:26: warning: 'c10::List<c10::IValue> c10::IValue::toList() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2066 | inline c10::List<IValue> IValue::toList() && {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2070:26: warning: 'c10::List<c10::IValue> c10::IValue::toList() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2070 | inline c10::List<IValue> IValue::toList() const& {
      |                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2082:34: warning: 'c10::Dict<c10::IValue, c10::IValue> c10::IValue::toGenericDict() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2082 | inline c10::Dict<IValue, IValue> IValue::toGenericDict() && {
      |                                  ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2086:34: warning: 'c10::Dict<c10::IValue, c10::IValue> c10::IValue::toGenericDict() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2086 | inline c10::Dict<IValue, IValue> IValue::toGenericDict() const& {
      |                                  ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2090:42: warning: 'c10::intrusive_ptr<c10::ivalue::Tuple> c10::IValue::toTuple() &&' redeclared without dllimport attribute after being referenced with dll linkage
 2090 | inline c10::intrusive_ptr<ivalue::Tuple> IValue::toTuple() && {
      |                                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2094:42: warning: 'c10::intrusive_ptr<c10::ivalue::Tuple> c10::IValue::toTuple() const &' redeclared without dllimport attribute after being referenced with dll linkage
 2094 | inline c10::intrusive_ptr<ivalue::Tuple> IValue::toTuple() const& {
      |                                          ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2098:23: warning: 'c10::ivalue::Tuple& c10::IValue::toTupleRef() const' redeclared without dllimport attribute after being referenced with dll linkage
 2098 | inline ivalue::Tuple& IValue::toTupleRef() const {
      |                       ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2137:8: warning: 'c10::IValue::IValue(std::string)' redeclared without dllimport attribute after being referenced with dll linkage
 2137 | inline IValue::IValue(std::string v)
      |        ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2355:27: warning: 'const std::string& c10::IValue::toStringRef() const' redeclared without dllimport attribute after being referenced with dll linkage
 2355 | inline const std::string& IValue::toStringRef() const {
      |                           ^~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/ivalue_inl.h:2378:25: warning: 'c10::string_view c10::IValue::toStringView() const' redeclared without dllimport attribute after being referenced with dll linkage
 2378 | inline c10::string_view IValue::toStringView() const {
      |                         ^~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:74,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ATen.h:13:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/ops/from_blob.h:8:23: warning: inline function 'void at::detail::noopDelete(void*)' declared as dllimport: attribute ignored [-Wattributes]
    8 | TORCH_API inline void noopDelete(void*) {}
      |                       ^~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1397:25: warning: inline function 'at::Tensor at::var(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1397 | TORCH_API inline Tensor var(const Tensor& self, int dim) {
      |                         ^~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1400:45: warning: inline function 'std::tuple<at::Tensor, at::Tensor> at::var_mean(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1400 | TORCH_API inline std::tuple<Tensor, Tensor> var_mean(const Tensor& self, int dim) {
      |                                             ^~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1403:25: warning: inline function 'at::Tensor at::std(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1403 | TORCH_API inline Tensor std(const Tensor& self, int dim) {
      |                         ^~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/Functions.h:1406:45: warning: inline function 'std::tuple<at::Tensor, at::Tensor> at::std_mean(const Tensor&, int)' declared as dllimport: attribute ignored [-Wattributes]
 1406 | TORCH_API inline std::tuple<Tensor, Tensor> std_mean(const Tensor& self, int dim) {
      |                                             ^~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/variable.h:11,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/extension.h:5,
                 from C:/Users/hp/Downloads/NATTEN/csrc/include/natten/cpu/naive/neighborhood_neighborhood_1d.hpp:34:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:170:23: warning: inline function 'void at::namedinference::propagate_names(const at::TensorBase&, at::DimnameList, bool)' declared as dllimport: attribute ignored [-Wattributes]
  170 | TORCH_API inline void propagate_names(
      |                       ^~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:177:23: warning: inline function 'void at::namedinference::propagate_names_if_nonempty(const at::TensorBase&, at::DimnameList, bool)' declared as dllimport: attribute ignored [-Wattributes]
  177 | TORCH_API inline void propagate_names_if_nonempty(
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/NamedTensorUtils.h:185:23: warning: inline function 'void at::namedinference::propagate_names(const at::TensorBase&, const at::TensorBase&)' declared as dllimport: attribute ignored [-Wattributes]
  185 | TORCH_API inline void propagate_names(
      |                       ^~~~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/op_registration/infer_schema.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/library.h:61,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/autograd_not_implemented_fallback.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:4:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/function_schema.h:210:23: warning: 'dllimport' attribute ignored [-Wattributes]
  210 | enum struct TORCH_API SchemaArgType { input, output };
      |                       ^~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/library.h:63:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:717:13: warning: 'void c10::Dispatcher::callBoxed(const c10::OperatorHandle&, c10::Stack*) const' redeclared without dllimport attribute after being referenced with dll linkage
  717 | inline void Dispatcher::callBoxed(const OperatorHandle& op, Stack* stack) const {
      |             ^~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:751:13: warning: 'void c10::Dispatcher::callBoxedForDispatchKey(const c10::OperatorHandle&, c10::DispatchKey, c10::Stack*) const' redeclared without dllimport attribute after being referenced with dll linkage
  751 | inline void Dispatcher::callBoxedForDispatchKey(const OperatorHandle& op, DispatchKey dk, Stack* stack) const {
      |             ^~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:769:13: warning: 'void c10::Dispatcher::redispatchBoxed(const c10::OperatorHandle&, c10::DispatchKeySet, c10::Stack*) const' redeclared without dllimport attribute after being referenced with dll linkage
  769 | inline void Dispatcher::redispatchBoxed(const OperatorHandle& op, DispatchKeySet dispatchKeySet, Stack* stack) const {
      |             ^~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/function_impl.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/method.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/object.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/api/module.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers/serialize.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers.h:8,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:6,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/data.h:4,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/all.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/ir/ir.h:302:42: error: function 'std::shared_ptr<torch::jit::Wrap<torch::jit::Value> > torch::jit::Value::wrap()' definition is marked dllimport
  302 |   TORCH_API std::shared_ptr<Wrap<Value>> wrap() {
      |                                          ^~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/jit/ir/ir.h:1138:42: error: function 'std::shared_ptr<torch::jit::Wrap<torch::jit::Block> > torch::jit::Block::wrap()' definition is marked dllimport
 1138 |   TORCH_API std::shared_ptr<Wrap<Block>> wrap() {
      |                                          ^~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/profiler_kineto.h:9,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/autograd/profiler.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:7,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/all.h:16:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/profiler/util.h:46:23: warning: inline function 'void torch::profiler::impl::logSoftAssert(const char*, const char*, uint32_t, const char*, c10::detail::CompileTimeEmptyString)' declared as dllimport: attribute ignored [-Wattributes]
   46 | TORCH_API inline void logSoftAssert(
      |                       ^~~~~~~~~~~~~
In file included from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/Exceptions.h:16,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/api/include/torch/python.h:11,
                 from C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/extension.h:9:
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:34:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<at::Tensor>' has already been declared with a different visibility
   34 | struct TORCH_PYTHON_API type_caster<at::Tensor> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:95:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::ArrayRef<long long int> >' has already been declared with a different visibility
   95 | struct TORCH_PYTHON_API type_caster<at::IntArrayRef> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:111:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::ArrayRef<c10::SymInt> >' has already been declared with a different visibility
  111 | struct TORCH_PYTHON_API type_caster<at::SymIntArrayRef> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:127:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::ArrayRef<c10::intrusive_ptr<c10::SymNodeImpl> > >' has already been declared with a different visibility
  127 | struct TORCH_PYTHON_API type_caster<at::ArrayRef<c10::SymNode>> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:282:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::Scalar>' has already been declared with a different visibility
  282 | struct TORCH_PYTHON_API type_caster<c10::Scalar> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:296:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::SymInt>' has already been declared with a different visibility
  296 | struct TORCH_PYTHON_API type_caster<c10::SymInt> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:308:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::SymFloat>' has already been declared with a different visibility
  308 | struct TORCH_PYTHON_API type_caster<c10::SymFloat> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
C:/Users/hp/AppData/Local/Programs/Python/Python312/Lib/site-packages/torch/include/torch/csrc/utils/pybind.h:320:25: error: 'dllimport' implies default visibility, but 'struct pybind11::detail::type_caster<c10::SymBool>' has already been declared with a different visibility
  320 | struct TORCH_PYTHON_API type_caster<c10::SymBool> {
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "C:\Users\hp\Downloads\NATTEN\setup.py", line 243, in <module>
    setup(
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\__init__.py", line 103, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
    dist.run_commands()
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\dist.py", line 963, in run_command
    super().run_command(command)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
    cmd_obj.run()
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\command\install.py", line 84, in run
    self.do_egg_install()
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\command\install.py", line 132, in do_egg_install
    self.run_command('bdist_egg')
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\dist.py", line 963, in run_command
    super().run_command(command)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
    cmd_obj.run()
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\command\bdist_egg.py", line 167, in run
    cmd = self.call_command('install_lib', warn_dir=0)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\command\bdist_egg.py", line 153, in call_command
    self.run_command(cmdname)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\dist.py", line 963, in run_command
    super().run_command(command)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
    cmd_obj.run()
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\command\install_lib.py", line 11, in run
    self.build()
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\command\install_lib.py", line 111, in build
    self.run_command('build_ext')
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
    self.distribution.run_command(command)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\dist.py", line 963, in run_command
    super().run_command(command)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
    cmd_obj.run()
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\command\build_ext.py", line 88, in run
    _build_ext.run(self)
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run
    self.build_extensions()
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 467, in build_extensions
    self._build_extensions_serial()
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 493, in _build_extensions_serial
    self.build_extension(ext)
  File "C:\Users\hp\Downloads\NATTEN\setup.py", line 230, in build_extension
    subprocess.check_call(["cmake", *cmake_build_args])
  File "C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', 'build\\lib.win-amd64-cpython-312', '-j', '3']' returned non-zero exit status 1.|

Sorry it does contain the irrelevant part too, but I thought it might be of help.

@alihassanijr
Copy link
Member

@pranavgnn thanks for the log. For future reference, please upload logs as a text file, that way scrolling through the issue won't become an issue and I'll be able to search the log more easily in my editor than in my browser.

It looks like compilation errors are on torch headers, which might mean something NATTEN uses in torch's C++ API has been deprecated or changed for windows. Can you please share what version of torch you're using?

@deniro21
Copy link

Same problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants