// File: btbujiangjun[P]abcdl/include/rnn/RNN.h
// Function: abcdl::rnn::RNN::RNN(unsigned long, unsigned long)
RNN(const size_t feature_dim, const size_t hidden_dim){

        _feature_dim    = feature_dim;
        _hidden_dim     = hidden_dim;

        _U.reset(hidden_dim, feature_dim, 0, 1, -std::sqrt(1.0/feature_dim), std::sqrt(1.0/feature_dim));
        _W.reset(hidden_dim, hidden_dim, 0, 1, -std::sqrt(1.0/hidden_dim), std::sqrt(1.0/hidden_dim));
        _V.reset(feature_dim, hidden_dim, 0, 1, -std::sqrt(1.0/hidden_dim), std::sqrt(1.0/hidden_dim));

        _layer = new abcdl::rnn::Layer(hidden_dim, _bptt_truncate, new abcdl::framework::CrossEntropyCost(), new abcdl::framework::TanhActivateFunc());
    }

// Assembly:
subq $0x188, %rsp            # imm = 0x188
movq %rdi, 0x180(%rsp)
movq %rsi, 0x178(%rsp)
movq %rdx, 0x170(%rsp)
movq 0x180(%rsp), %rax
movq %rax, 0x110(%rsp)
movq $0x4, 0x10(%rax)
movq $0x5, 0x18(%rax)
movq $0xa, 0x20(%rax)
movl $0x3dcccccd, 0x28(%rax) # imm = 0x3DCCCCCD
addq $0x30, %rax
movq %rax, 0x118(%rsp)
leaq 0x16f(%rsp), %rdi
movq %rdi, 0x120(%rsp)
callq 0xb990
movq 0x118(%rsp), %rdi
movq 0x120(%rsp), %rdx
leaq 0x9be53(%rip), %rsi     # 0xb5309
callq 0xb760
jmp 0x194bd
leaq 0x16f(%rsp), %rdi
callq 0xb5f0
movq 0x110(%rsp), %rdi
addq $0x50, %rdi
movq %rdi, 0x108(%rsp)
callq 0x1a170
jmp 0x194e5
movq 0x110(%rsp), %rdi
addq $0x70, %rdi
movq %rdi, 0x100(%rsp)
callq 0x1a180
jmp 0x19500
movq 0x110(%rsp), %rdi
addq $0xa8, %rdi
movq %rdi, 0xf8(%rsp)
callq 0x1a180
jmp 0x1951e
movq 0x110(%rsp), %rdi
addq $0xe0, %rdi
movq %rdi, 0xf0(%rsp)
callq 0x1a180
jmp 0x1953c
movq 0x110(%rsp), %rax
movq 0x178(%rsp), %rcx
movq %rcx, (%rax)
movq 0x170(%rsp), %rcx
movq %rcx, 0x8(%rax)
addq $0x70, %rax
movq %rax, 0xd8(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0xe0(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0xe8(%rsp)
movl $0x0, 0x158(%rsp)
movl $0x3f800000, 0x154(%rsp) # imm = 0x3F800000
movq 0x178(%rsp), %xmm1
movaps 0x9ba63(%rip), %xmm0    # 0xb5010
movaps %xmm0, 0xb0(%rsp)
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x9ba5f(%rip), %xmm0    # 0xb5020
movaps %xmm0, 0xc0(%rsp)
subpd %xmm0, %xmm1
movaps %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm0, %xmm1
movsd 0x9ba60(%rip), %xmm0    # 0xb5040
movsd %xmm0, 0xd0(%rsp)
divsd %xmm1, %xmm0
callq 0xb470
movaps 0xb0(%rsp), %xmm3
movaps 0xc0(%rsp), %xmm2
movaps %xmm0, %xmm1
movsd 0xd0(%rsp), %xmm0
movaps 0x9ba1b(%rip), %xmm4    # 0xb5030
pxor %xmm4, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, 0x150(%rsp)
movq 0x178(%rsp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0xb470
movq 0xd8(%rsp), %rdi
movq 0xe0(%rsp), %rsi
movq 0xe8(%rsp), %rdx
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x14c(%rsp)
movq %rsp, %rax
leaq 0x14c(%rsp), %rcx
movq %rcx, (%rax)
leaq 0x158(%rsp), %rcx
leaq 0x154(%rsp), %r8
leaq 0x150(%rsp), %r9
callq 0x62550
jmp 0x1969d
movq 0x110(%rsp), %rax
addq $0xa8, %rax
movq %rax, 0xa0(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0xa8(%rsp)
movl $0x0, 0x148(%rsp)
movl $0x3f800000, 0x144(%rsp) # imm = 0x3F800000
movq 0x170(%rsp), %xmm1
movaps 0x9b927(%rip), %xmm0    # 0xb5010
movaps %xmm0, 0x70(%rsp)
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x9b926(%rip), %xmm0    # 0xb5020
movaps %xmm0, 0x80(%rsp)
subpd %xmm0, %xmm1
movaps %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm0, %xmm1
movsd 0x9b927(%rip), %xmm0    # 0xb5040
movsd %xmm0, 0x98(%rsp)
divsd %xmm1, %xmm0
callq 0xb470
movaps 0x70(%rsp), %xmm3
movaps 0x80(%rsp), %xmm2
movaps %xmm0, %xmm1
movsd 0x98(%rsp), %xmm0
movaps 0x9b8e5(%rip), %xmm4    # 0xb5030
pxor %xmm4, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, 0x140(%rsp)
movq 0x170(%rsp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0xb470
movq 0xa0(%rsp), %rdi
movq 0xa8(%rsp), %rdx
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x13c(%rsp)
movq %rsp, %rax
leaq 0x13c(%rsp), %rcx
movq %rcx, (%rax)
leaq 0x148(%rsp), %rcx
leaq 0x144(%rsp), %r8
leaq 0x140(%rsp), %r9
movq %rdx, %rsi
callq 0x62550
jmp 0x197ce
movq 0x110(%rsp), %rax
addq $0xe0, %rax
movq %rax, 0x58(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0x68(%rsp)
movl $0x0, 0x138(%rsp)
movl $0x3f800000, 0x134(%rsp) # imm = 0x3F800000
movq 0x170(%rsp), %xmm1
movaps 0x9b7ef(%rip), %xmm0    # 0xb5010
movaps %xmm0, 0x30(%rsp)
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movapd 0x9b7ee(%rip), %xmm0    # 0xb5020
movaps %xmm0, 0x40(%rsp)
subpd %xmm0, %xmm1
movaps %xmm1, %xmm0
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm0, %xmm1
movsd 0x9b7f2(%rip), %xmm0    # 0xb5040
movsd %xmm0, 0x50(%rsp)
divsd %xmm1, %xmm0
callq 0xb470
movaps 0x30(%rsp), %xmm3
movaps 0x40(%rsp), %xmm2
movaps %xmm0, %xmm1
movsd 0x50(%rsp), %xmm0
movaps 0x9b7b9(%rip), %xmm4    # 0xb5030
pxor %xmm4, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, 0x130(%rsp)
movq 0x170(%rsp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0xb470
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x12c(%rsp)
movq %rsp, %rax
leaq 0x12c(%rsp), %rcx
movq %rcx, (%rax)
leaq 0x138(%rsp), %rcx
leaq 0x134(%rsp), %r8
leaq 0x130(%rsp), %r9
callq 0x62550
jmp 0x198f6
movl $0x30, %edi
callq 0xb590
movq %rax, 0x28(%rsp)
jmp 0x19907
movq 0x110(%rsp), %rax
movq 0x170(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
movl $0x18, %edi
callq 0xb590
movq %rax, 0x20(%rsp)
jmp 0x19936
movq 0x20(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
callq 0x1a1d0
jmp 0x19950
movl $0x18, %edi
callq 0xb590
movq %rax, 0x8(%rsp)
jmp 0x19961
movq 0x8(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
callq 0x1a200
jmp 0x1997b
movq 0x8(%rsp), %r8
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq 0x28(%rsp), %rdi
callq 0x1a230
jmp 0x1999b
movq 0x110(%rsp), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x118(%rax)
addq $0x188, %rsp            # imm = 0x188
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
leaq 0x16f(%rsp), %rdi
callq 0xb5f0
jmp 0x19af6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x19ae9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x19adc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x19acf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x19ac2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x19ab5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
jmp 0x19aab
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
callq 0xb560
jmp 0x19aab
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x160(%rsp)
movl %eax, 0x15c(%rsp)
callq 0xb560
movq 0x28(%rsp), %rdi
callq 0xb560
movq 0xf0(%rsp), %rdi
callq 0x1a290
movq 0xf8(%rsp), %rdi
callq 0x1a290
movq 0x100(%rsp), %rdi
callq 0x1a290
movq 0x108(%rsp), %rdi
callq 0x1a2a0
movq 0x118(%rsp), %rdi
callq 0xb330
movq 0x160(%rsp), %rdi
callq 0xb980
nopw %cs:(%rax,%rax)
nopl (%rax)