简体   繁体   English

Tensor Flow 与 Julia 0.6.4 兼容吗?

[英]Is Tensor Flow compatible with Julia 0.6.4?

So I have a project in my machine learning class and we are using Julia as our programming language.所以我在我的机器学习课上有一个项目,我们使用 Julia 作为我们的编程语言。 We can use any packages we want to build neural networks but I can't seem to get Tensor Flow to test correctly.我们可以使用我们想要构建神经网络的任何包,但我似乎无法正确测试 Tensor Flow。 Pkg.add("TensorFlow") works seemingly fine but here is the output for Pkg.test("TensorFlow") Pkg.add("TensorFlow")看起来不错,但这里是Pkg.test("TensorFlow")的输出

julia> Pkg.test("TensorFlow")
INFO: Testing TensorFlow
ERROR: LoadError: LoadError: could not load library "C:\Users\Ryan .LAPTOP-                
KJUJGIC7\.julia\v0.6\TensorFlow\src\..\deps\usr\bin\libtensorflow"
The specified module could not be found.

Stacktrace:
 [1] dlopen(::String, ::UInt32) at .\libdl.jl:97
 [2] TensorFlow.Graph() at C:\Users\Ryan .LAPTOP-   KJUJGIC7\.julia\v0.6\TensorFlow\src\core.jl:21
 [3] include_from_node1(::String) at .\loading.jl:576
 [4] include(::String) at .\sysimg.jl:14
 [5] include_from_node1(::String) at .\loading.jl:576
 [6] include(::String) at .\sysimg.jl:14
 [7] process_options(::Base.JLOptions) at .\client.jl:305
 [8] _start() at .\client.jl:371
while loading C:\Users\Ryan .LAPTOP-KJUJGIC7\.julia\v0.6\TensorFlow\test\..\examples\logistic.jl, in expression     starting on line 22
while loading C:\Users\Ryan .LAPTOP-KJUJGIC7\.julia\v0.6\TensorFlow\test\runtests.jl, in expression starting on line 6
=================================================[ ERROR: TensorFlow ]==================================================

failed process: Process(`'C:\Users\Ryan .LAPTOP-KJUJGIC7\AppData\Local\Julia-0.6.4\bin\julia.exe' -Cgeneric '-JC:\Users\Ryan .LAPTOP-KJUJGIC7\AppData\Local\Julia-0.6.4\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes 'C:\Users\Ryan .LAPTOP-KJUJGIC7\.julia\v0.6\TensorFlow\test\runtests.jl'`, ProcessExited(1)) [1]

========================================================================================================================
ERROR: TensorFlow had test errors

I'm running Julia Version 0.6.4 on Windows 10;我在 Windows 10 上运行 Julia 版本 0.6.4; if there's a way to resolve this error or a workaround I'd love some suggestions.如果有办法解决此错误或解决方法,我会喜欢一些建议。

TensorFlow.jl does not support Windows. TensorFlow.jl不支持 Windows。 You have two options:您有两个选择:

(1) Try using TensorFlow via PyCall.jl : (1) 尝试通过PyCall.jl使用 TensorFlow:

using Conda
Conda.runconda("install -c conda-forge tensorflow")

(2) Use Flux.jl instead (2) 改用Flux.jl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM