【问题标题】:Is Tensor Flow compatible with Julia 0.6.4?Tensor Flow 与 Julia 0.6.4 兼容吗?
【发布时间】:2018-10-27 06:46:34
【问题描述】:

所以我在机器学习课上有一个项目,我们使用 Julia 作为我们的编程语言。我们可以使用我们想要构建神经网络的任何包,但我似乎无法让 Tensor Flow 正确测试。 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

我在 Windows 10 上运行 Julia 版本 0.6.4;如果有解决此错误的方法或解决方法,我很乐意提供一些建议。

【问题讨论】:

    标签: tensorflow julia


    【解决方案1】:

    TensorFlow.jl 不支持 Windows。 你有两个选择:

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

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

    (2) 改用Flux.jl

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-08
      • 1970-01-01
      • 2019-02-08
      • 1970-01-01
      • 2015-08-09
      • 2018-08-27
      • 2011-12-31
      • 2020-03-19
      相关资源
      最近更新 更多