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

mish.h syntax errors #14

Open
armanm01 opened this issue Mar 18, 2021 · 1 comment
Open

mish.h syntax errors #14

armanm01 opened this issue Mar 18, 2021 · 1 comment

Comments

@armanm01
Copy link

when trying to run setup.py i get the following error.
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(17): error C2144: syntax error: 'void' should be preceded by ';'
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(17): error C2065: 'scalar_t': undeclared identifier
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(17): error C2065: 'out': undeclared identifier
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(17): error C2988: unrecognizable template declaration/definition
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(17): error C2059: syntax error: 'const'
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(17): error C2143: syntax error: missing ';' before '{'
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(17): error C2447: '{': missing function header (old-style formal list?)
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(25): error C2144: syntax error: 'void' should be preceded by ';'
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(25): error C2065: 'scalar_t': undeclared identifier
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(25): error C2065: 'grad_inp': undeclared identifier
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(25): error C2988: unrecognizable template declaration/definition
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(25): error C2059: syntax error: 'const'
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(25): error C2143: syntax error: missing ';' before '{'
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(25): error C2447: '{': missing function header (old-style formal list?)
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(40): error C2062: type 'float' unexpected
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(41): error C2065: 'res': undeclared identifier
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(48): error C2062: type 'float' unexpected
C:\Users\arman\Desktop\Arman\cowc-everything\scaled_yolov4_p6\mish-cuda\csrc\mish.h(49): error C2065: 'res': undeclared identifier
C:\Users\arman\Anaconda3\lib\site-packages\torch\include\ATen/Parallel.h(43): error C2039: 'init_num_threads': is not a member of 'at'
C:\Users\arman\Anaconda3\lib\site-packages\torch\include\ATen/Parallel.h(7): note: see declaration of 'at'
C:\Users\arman\Anaconda3\lib\site-packages\torch\include\ATen/Parallel.h(43): error C3861: 'init_num_threads': identifier not found
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe' failed with exit status 2

Installing on Windows 10

@Andrej-sens
Copy link

Facing the same issue. It looks like scalar_t is undefined type and my guess is that should be defined in torch/types.h.
Isn't this a version problem?

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

No branches or pull requests

2 participants