dmlc / dmlc/MXNet.jl

LSTM example fails

Open
#197 18 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
369
Forks
63
PR merge metrics
No merged PRs in 30d

Description

The "FullyConnected" do not work.
```
WARNING: symbol is deprecated, use Symbol instead.
in depwarn(::String, ::Symbol) at ./deprecated.jl:64
in symbol(::Symbol, ::Vararg{Any,N}) at ./deprecated.jl:30
in #LSTM#2(::Int64, ::Symbol, ::Bool, ::Function, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64) at /usr/people/jingpeng/.julia/v0.5/MXNet/examples/char-lstm/lstm.jl:74
in (::#kw##LSTM)(::Array{Any,1}, ::#LSTM, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64) at ./:0
in include_from_node1(::String) at ./loading.jl:488
in process_options(::Base.JLOptions) at ./client.jl:262
in _start() at ./client.jl:318
while loading /usr/people/jingpeng/.julia/v0.5/MXNet/examples/char-lstm/train.jl, in expression starting on line 11
ERROR: LoadError: AssertionError: FullyConnected only accepts SymbolicNode either as positional or keyword arguments, not both.
in #FullyConnected#4042(::Array{Any,1}, ::Function, ::Type{MXNet.mx.SymbolicNode}, ::MXNet.mx.SymbolicNode, ::Vararg{MXNet.mx.SymbolicNode,N}) at /usr/people/jingpeng/.julia/v0.5/MXNet/src/symbolic-node.jl:654
in (::MXNet.mx.#kw##FullyConnected)(::Array{Any,1}, ::MXNet.mx.#FullyConnected, ::Type{MXNet.mx.SymbolicNode}, ::MXNet.mx.SymbolicNode, ::Vararg{MXNet.mx.SymbolicNode,N}) at ./:0
in #FullyConnected#4046(::Array{Any,1}, ::Function, ::MXNet.mx.SymbolicNode, ::Vararg{MXNet.mx.SymbolicNode,N}) at /usr/people/jingpeng/.julia/v0.5/MXNet/src/symbolic-node.jl:696
in (::MXNet.mx.#kw##FullyConnected)(::Array{Any,1}, ::MXNet.mx.#FullyConnected, ::MXNet.mx.SymbolicNode) at ./:0
in #LSTM#2(::Int64, ::Symbol, ::Bool, ::Function, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64) at /usr/people/jingpeng/.julia/v0.5/MXNet/examples/char-lstm/lstm.jl:74
in (::#kw##LSTM)(::Array{Any,1}, ::#LSTM, ::Int64, ::Int64, ::Int64, ::Int64, ::Int64) at ./:0
in include_from_node1(::String) at ./loading.jl:488
in process_options(::Base.JLOptions) at ./client.jl:262
in _start() at ./client.jl:318
while loading /usr/people/jingpeng/.julia/v0.5/MXNet/examples/char-lstm/train.jl, in expression starting on line 11

```

the error line of code:
https://github.com/dmlc/MXNet.jl/blob/master/src/symbolic-node.jl#L654

If I comment it, it will construct the symbolic graph, but can not execute it.
```
ERROR: LoadError: AssertionError: Duplicated names in arguments: Symbol[:ptb_data_1,:ptb_embed_1_weight,:ptb_lstm_1_i2h_weight,:ptb_lstm_1_i2h_bias,:ptb_l1_init_h,:ptb_lstm_1_h2h_weight,:ptb_lstm_1_h2h_bias,:ptb_l1_init_c,:ptb_lstm_1_i2h_weight,:ptb_lstm_1_i2h_bias,:ptb_l2_init_h,:ptb_lstm_1_h2h_weight,:ptb_lstm_1_h2h_bias,:ptb_l2_init_c,:ptb_pred_1_weight,:ptb_pred_1_bias,:ptb_label_1,:ptb_data_2,:ptb_embed_2_weight,:ptb_lstm_2_i2h_weight,:ptb_lstm_2_i2h_bias,:
```

I am using the master branch with updated submodules.
```
julia> versioninfo()

Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
System: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell)

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.