// File: /workspace/github_cpp_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbp
movq %rsi, %r14
movq %rdi, %rbx
movq $0x4, 0x10(%rdi)
movq $0x5, 0x18(%rdi)
movq $0xa, 0x20(%rdi)
movl $0x3dcccccd, 0x28(%rdi) # imm = 0x3DCCCCCD
leaq 0x30(%rdi), %r15
leaq 0x40(%rdi), %r12
movq %r12, 0x30(%rdi)
leaq 0x34c46(%rip), %rsi     # 0x4728d
leaq 0x34c50(%rip), %rdx     # 0x4729e
movq %r15, %rdi
callq 0x14914
leaq 0x60(%rbx), %r13
movq %r13, 0x50(%rbx)
movq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
leaq 0x70(%rbx), %rdi
movq %rdi, 0x48(%rsp)
movq %r15, 0x60(%rsp)
movq %r12, 0x58(%rsp)
movq %r13, 0x50(%rsp)
callq 0x26b6c
movsd 0x34991(%rip), %xmm0    # 0x47020
movups %xmm0, 0x98(%rbx)
leaq 0xa8(%rbx), %rdi
movq %rdi, 0x40(%rsp)
callq 0x26b6c
movsd 0x34971(%rip), %xmm0    # 0x47020
movups %xmm0, 0xd0(%rbx)
leaq 0xe0(%rbx), %rdi
movq %rdi, 0x38(%rsp)
callq 0x26b6c
movsd 0x34951(%rip), %xmm0    # 0x47020
movups %xmm0, 0x108(%rbx)
movq %r14, (%rbx)
movq %rbp, 0x8(%rbx)
movl $0x0, 0x1c(%rsp)
movq %r14, %xmm0
punpckldq 0x3493e(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x34946(%rip), %xmm0    # 0x47040
movl $0x3f800000, 0x18(%rsp) # imm = 0x3F800000
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x3496a(%rip), %xmm2    # 0x47080
divsd %xmm1, %xmm2
xorps %xmm1, %xmm1
sqrtsd %xmm2, %xmm1
xorpd %xmm3, %xmm3
ucomisd %xmm3, %xmm2
movapd %xmm1, %xmm0
jae 0x12754
movapd %xmm2, %xmm0
movsd %xmm1, 0x20(%rsp)
movsd %xmm2, 0x28(%rsp)
callq 0xa370
xorpd %xmm3, %xmm3
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm1
cvtsd2ss %xmm0, %xmm0
xorps 0x348f1(%rip), %xmm0    # 0x47050
movss %xmm0, 0x14(%rsp)
ucomisd %xmm3, %xmm2
jae 0x12778
movapd %xmm2, %xmm0
callq 0xa370
movapd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
leaq 0x34(%rsp), %r15
movss %xmm0, (%r15)
movq %r15, (%rsp)
leaq 0x1c(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0x14(%rsp), %r9
movq 0x48(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2afc8
movl $0x0, 0x1c(%rsp)
movq %rbp, %xmm0
punpckldq 0x3486f(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
movl $0x3f800000, 0x18(%rsp) # imm = 0x3F800000
subpd 0x3486f(%rip), %xmm0    # 0x47040
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x3489b(%rip), %xmm0    # 0x47080
divsd %xmm1, %xmm0
movapd %xmm0, %xmm1
xorps %xmm2, %xmm2
sqrtsd %xmm0, %xmm2
xorpd %xmm3, %xmm3
ucomisd %xmm3, %xmm0
movapd %xmm2, %xmm0
movsd %xmm1, 0x20(%rsp)
jae 0x12827
movapd %xmm1, %xmm0
movsd %xmm2, 0x28(%rsp)
callq 0xa370
xorpd %xmm3, %xmm3
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm1
cvtsd2ss %xmm0, %xmm0
xorps 0x3481e(%rip), %xmm0    # 0x47050
movss %xmm0, 0x14(%rsp)
ucomisd %xmm3, %xmm1
jae 0x1284c
movsd 0x20(%rsp), %xmm0
callq 0xa370
movaps %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
movss %xmm0, 0x34(%rsp)
movq %r15, (%rsp)
leaq 0x1c(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0x14(%rsp), %r9
movq 0x40(%rsp), %rdi
movq %rbp, %rsi
movq %rbp, %rdx
callq 0x2afc8
movl $0x0, 0x1c(%rsp)
movl $0x3f800000, 0x18(%rsp) # imm = 0x3F800000
movsd 0x20(%rsp), %xmm1
xorps %xmm2, %xmm2
sqrtsd %xmm1, %xmm2
xorpd %xmm3, %xmm3
ucomisd %xmm3, %xmm1
movapd %xmm2, %xmm0
jae 0x128c6
movapd %xmm1, %xmm0
movsd %xmm2, 0x28(%rsp)
callq 0xa370
xorpd %xmm3, %xmm3
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm1
cvtsd2ss %xmm0, %xmm0
xorps 0x3477f(%rip), %xmm0    # 0x47050
movss %xmm0, 0x14(%rsp)
ucomisd %xmm3, %xmm1
jae 0x128ea
movapd %xmm1, %xmm0
callq 0xa370
movapd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
movss %xmm0, 0x34(%rsp)
movq %r15, (%rsp)
leaq 0x1c(%rsp), %rcx
leaq 0x18(%rsp), %r8
leaq 0x14(%rsp), %r9
movq 0x38(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x2afc8
movl $0x30, %edi
callq 0xa460
movq %rax, %r14
movq 0x10(%rbx), %r13
movl $0x18, %edi
callq 0xa460
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x56583(%rip), %rax     # 0x68ed0
movq %rax, (%r15)
movq %r15, %rdi
addq $0x8, %rdi
callq 0xd874
leaq 0x5651d(%rip), %rax     # 0x68e80
movq %rax, (%r15)
movl $0x18, %edi
callq 0xa460
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x565c8(%rip), %rax     # 0x68f50
movq %rax, (%r12)
movq %r12, %rdi
addq $0x8, %rdi
callq 0xd874
leaq 0x56559(%rip), %rax     # 0x68ef8
movq %rax, (%r12)
movq %r14, %rdi
addq $0x20, %rdi
callq 0xd874
movq %rbp, (%r14)
movq %r13, 0x8(%r14)
movq %r15, 0x10(%r14)
movq %r12, 0x18(%r14)
movq %r14, 0x118(%rbx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbp
movq %r12, %rdi
jmp 0x129e2
movq %rax, %rbp
movq %r15, %rdi
callq 0xa440
jmp 0x12a06
jmp 0x129ef
jmp 0x129ef
jmp 0x129ef
movq %rax, %rbp
jmp 0x12a0e
movq %rax, %rbp
jmp 0x12a18
movq %rax, %rbp
jmp 0x12a22
movq %rax, %rbp
jmp 0x12a2c
movq %rax, %rbp
movq %r14, %rdi
callq 0xa440
movq 0x38(%rsp), %rdi
callq 0x26dc2
movq 0x40(%rsp), %rdi
callq 0x26dc2
movq 0x48(%rsp), %rdi
callq 0x26dc2
movq 0x50(%rbx), %rdi
cmpq 0x50(%rsp), %rdi
je 0x12a3c
callq 0xa440
movq 0x60(%rsp), %rax
movq (%rax), %rdi
cmpq 0x58(%rsp), %rdi
je 0x12a50
callq 0xa440
movq %rbp, %rdi
callq 0xa780