tensorflow-windows-wheel icon indicating copy to clipboard operation
tensorflow-windows-wheel copied to clipboard

libtensorflow-cpu-windows-x86_64-1.9.0-sse2.cpp with vs2015

Open johnbhlm opened this issue 5 years ago • 4 comments

when I download libtensorflow-cpu-windows-x86_64-1.9.0-sse2.cpp file, configer in vs2015 on win10 os: add the dll file to x64/release path,the .lib file to project file,add the include file path to "C/C++→常规→附加包含目录",.when i run,many errors occurred: C2064 项不会计算为接受 0 个参数的函数 TestTensorflow C:\Users\bao.he\Desktop\TensorflowC++\libtensorflow-cpu-windows-x86_64-1.9.0-sse2\include\tensorflow\core\lib\gtl\array_slice_internal.h C2131表达式的计算结果不是常数 TestTensorflow C:\Users\bao.he\Desktop\TensorflowC++\libtensorflow-cpu-windows-x86_64-1.9.0-sse2\include\tensorflow\core\framework\variant.h C2899 不能在模板声明之外使用类型名称 TestTensorflow C:\Users\bao.he\Desktop\TensorflowC++\libtensorflow-cpu-windows-x86_64-1.9.0-sse2\include\tensorflow\cc\framework\ops.h C2899 不能在模板声明之外使用类型名称 TestTensorflow C:\Users\bao.he\Desktop\TensorflowC++\libtensorflow-cpu-windows-x86_64-1.9.0-sse2\include\tensorflow\core\framework\tensor_types.h C2899 不能在模板声明之外使用类型名称 TestTensorflow C:\Users\bao.he\Desktop\TensorflowC++\libtensorflow-cpu-windows-x86_64-1.9.0-sse2\include\tensorflow\core\graph\edgeset.h

C4579'tensorflow::Variant::in_place': in-class initialization for type 'const tensorflow::Variant::in_place_t' is not yet implemented; static member will remain uninitialized at runtime but use in constant-expressions is supported TestTensorflow C:\Users\bao.he\Desktop\TensorflowC++\libtensorflow-cpu-windows-x86_64-1.9.0-sse2\include\tensorflow\core\framework\variant.h

I try test others .cpp file, exists same error .

Can you help me?Thank you.

johnbhlm avatar Mar 05 '20 09:03 johnbhlm

I think it's source file's own error. You have to correct it by yourself. For example, I solve the error proposed by VS2017 and tensorflow1.10 through the blog C2589 “(”:“::”右边的非法标记's solution. Then the program run successfully but paused because of memory problem caused by the dll file.....

tellw avatar Mar 06 '20 07:03 tellw

I don't know whether tensorflow1.8.0 could work, but you could reference #89

tellw avatar Mar 06 '20 08:03 tellw

Hello, have you solved this problem?I have the same problem.

  • errorC4579 'tensorflow::Variant::in_place': in-class initialization for type 'const tensorflow::Variant::in_place_t' is not yet implemented; static member will remain uninitialized at runtime but use in constant-expressions is supported Project4 D:\tensorflow\tensorflow\core\framework\variant.h

K-Xuan avatar Jan 05 '21 13:01 K-Xuan

Hello, have you solved this problem?I have the same problem.

  • errorC4579 'tensorflow::Variant::in_place': in-class initialization for type 'const tensorflow::Variant::in_place_t' is not yet implemented; static member will remain uninitialized at runtime but use in constant-expressions is supported Project4 D:\tensorflow\tensorflow\core\framework\variant.h

VS2015 - release

K-Xuan avatar Jan 05 '21 13:01 K-Xuan