Я попытался скомпилировать tensorflow-1.7.0
на своем компьютере, а программное обеспечение включено
cuda-10.0
cudnn-7.3
питон-3.6.2,
Визуальная студия 2017
CMake.
Есть ошибки:
Я не знаю, как это происходит и как ее решить.
:“C:\Users\12711\Downloads\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj”(默认目标) (1) ->
“C:\Users\12711\Downloads\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow_internal.vcxproj”(默认目标) (2) ->
“C:\Users\12711\Downloads\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels.vcxproj”(默认目标) (138) ->
(CustomBuild 目标) ->
C:/Users/12711/Downloads/tensorflow\tensorflow/core/kernels/reduction_gpu_kernels.cu.h(271): error : initializer not
allowed for __shared__ variable [C:\Users\12711\Downloads\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels
.vcxproj]
C:/Users/12711/Downloads/tensorflow\tensorflow/core/kernels/reduction_gpu_kernels.cu.h(319): error : initializer not
allowed for __shared__ variable [C:\Users\12711\Downloads\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels
.vcxproj]
C:/Users/12711/Downloads/tensorflow\tensorflow/core/kernels/reduction_gpu_kernels.cu.h(271): error : initializer not
allowed for __shared__ variable [C:\Users\12711\Downloads\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels
.vcxproj]
C:/Users/12711/Downloads/tensorflow\tensorflow/core/kernels/reduction_gpu_kernels.cu.h(319): error : initializer not
allowed for __shared__ variable [C:\Users\12711\Downloads\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels
.vcxproj]
C:/Users/12711/Downloads/tensorflow\tensorflow/core/kernels/reduction_gpu_kernels.cu.h(271): error : initializer not
allowed for __shared__ variable [C:\Users\12711\Downloads\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels
.vcxproj]
C:/Users/12711/Downloads/tensorflow\tensorflow/core/kernels/reduction_gpu_kernels.cu.h(319): error : initializer not
allowed for __shared__ variable [C:\Users\12711\Downloads\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels
.vcxproj]