@peterjc123 - - Thank you very mcuh. it supports it.
I used the scripts provided here: https://github.com/peterjc123/pytorch-scripts 5
I recompiled my pytorch, now I am getting different error as follows:
C:\anaconda3\envs\build_src\python.exe D:/repos/pytorch/pytroch_test.py
Traceback (most recent call last):
  File "D:/repos/pytorch/pytroch_test.py", line 4, in <module>
    import torch
  File "C:\anaconda3\envs\build_src\lib\site-packages\torch\__init__.py", line 82, in <module>
    ctypes.CDLL(dll)
  File "C:\anaconda3\envs\build_src\lib\ctypes\__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\anaconda3\envs\build_src\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll' (or one of its dependencies). Try using the full path with constructor syntax.

Process finished with exit code 1


Here is my cuda102.bat
@echo off

IF /I "%~1" == "/y" (
    set NO_PROMPT=1
)

IF NOT EXIST "setup.py" IF NOT EXIST "pytorch" (
    call internal\clone.bat
    cd ..
    IF ERRORLEVEL 1 goto eof
)

call internal\check_deps.bat
IF ERRORLEVEL 1 goto eof

REM Check for optional components

set NO_CUDA=
set CMAKE_GENERATOR=Visual Studio 15 2017
#set CMAKE_GENERATOR=Visual Studio 15 2017 Win64


IF "%NVTOOLSEXT_PATH%"=="" (
    echo NVTX ^(Visual Studio Extension ^for CUDA^) ^not installed, disabling CUDA
    set NO_CUDA=1
    goto optcheck
)

IF "%CUDA_PATH_V10_2%"=="" (
    echo CUDA 10.2 not found, disabling it
    set NO_CUDA=1
) ELSE (
    set "CUDA_PATH=%CUDA_PATH_V10_2%"
    set "PATH=%CUDA_PATH_V10_2%\bin;%PATH%"
	echo "CUDA PATH FOUND, %PATH%"
	SLEEP 10
	
)

:optcheck

call internal\check_opts.bat
IF ERRORLEVEL 1 goto eof

call internal\setup.bat
IF ERRORLEVEL 1 goto eof

:eof





 peterjc123:

It may be that your CPU is without AVX or AVX2 support.