// File: /workspace/github_cpp_makefile_star2_O3/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 $0x78, %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), %r12
leaq 0x40(%rdi), %r13
movq %r13, 0x30(%rdi)
leaq 0x34f46(%rip), %rsi     # 0x4728d
leaq 0x34f50(%rip), %rdx     # 0x4729e
movq %r12, %rdi
callq 0x1453a
leaq 0x60(%rbx), %rax
movq %rax, 0x38(%rsp)
movq %rax, 0x50(%rbx)
movq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
leaq 0x70(%rbx), %rdi
movq %rdi, 0x30(%rsp)
movq %r12, 0x48(%rsp)
movq %r13, 0x40(%rsp)
callq 0x267d8
movsd 0x34c91(%rip), %xmm0    # 0x47020
movups %xmm0, 0x98(%rbx)
leaq 0xa8(%rbx), %rdi
movq %rdi, 0x28(%rsp)
callq 0x267d8
movsd 0x34c71(%rip), %xmm0    # 0x47020
movups %xmm0, 0xd0(%rbx)
leaq 0xe0(%rbx), %rdi
movq %rdi, 0x20(%rsp)
callq 0x267d8
movsd 0x34c51(%rip), %xmm0    # 0x47020
movups %xmm0, 0x108(%rbx)
movq %r14, (%rbx)
movq %rbp, 0x8(%rbx)
leaq 0x1c(%rsp), %rcx
movl $0x0, (%rcx)
leaq 0x18(%rsp), %r8
movq %r14, %xmm0
punpckldq 0x34c36(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x34c3e(%rip), %xmm0    # 0x47040
movl $0x3f800000, (%r8)      # imm = 0x3F800000
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x34c63(%rip), %xmm0    # 0x47080
divsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
movaps 0x34c20(%rip), %xmm1    # 0x47050
xorps %xmm0, %xmm1
leaq 0x14(%rsp), %r9
movss %xmm1, (%r9)
leaq 0x10(%rsp), %r15
movss %xmm0, (%r15)
movq %r15, (%rsp)
movq 0x30(%rsp), %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2ac04
leaq 0x1c(%rsp), %rcx
movl $0x0, (%rcx)
leaq 0x18(%rsp), %r8
movl $0x3f800000, (%r8)      # imm = 0x3F800000
movq %rbp, %xmm0
punpckldq 0x34bb1(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x34bb9(%rip), %xmm0    # 0x47040
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x34be5(%rip), %xmm0    # 0x47080
divsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
movaps 0x34ba2(%rip), %xmm1    # 0x47050
xorps %xmm0, %xmm1
leaq 0x14(%rsp), %r9
movaps %xmm1, 0x50(%rsp)
movss %xmm1, (%r9)
movaps %xmm0, 0x60(%rsp)
movss %xmm0, 0x10(%rsp)
movq %r15, (%rsp)
movq 0x28(%rsp), %rdi
movq %rbp, %rsi
movq %rbp, %rdx
callq 0x2ac04
leaq 0x1c(%rsp), %rcx
movl $0x0, (%rcx)
leaq 0x18(%rsp), %r8
movl $0x3f800000, (%r8)      # imm = 0x3F800000
leaq 0x14(%rsp), %r9
movaps 0x50(%rsp), %xmm0
movss %xmm0, (%r9)
movaps 0x60(%rsp), %xmm0
movss %xmm0, 0x10(%rsp)
movq %r15, (%rsp)
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x2ac04
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 0x569a9(%rip), %rax     # 0x68f00
movq %rax, (%r15)
movq %r15, %rdi
addq $0x8, %rdi
callq 0xd788
leaq 0x56943(%rip), %rax     # 0x68eb0
movq %rax, (%r15)
movl $0x18, %edi
callq 0xa460
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x569ee(%rip), %rax     # 0x68f80
movq %rax, (%r12)
movq %r12, %rdi
addq $0x8, %rdi
callq 0xd788
leaq 0x5697f(%rip), %rax     # 0x68f28
movq %rax, (%r12)
movq %r14, %rdi
addq $0x20, %rdi
callq 0xd788
movq %rbp, (%r14)
movq %r13, 0x8(%r14)
movq %r15, 0x10(%r14)
movq %r12, 0x18(%r14)
movq %r14, 0x118(%rbx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbp
movq %r12, %rdi
jmp 0x125ec
movq %rax, %rbp
movq %r15, %rdi
callq 0xa440
jmp 0x12610
jmp 0x125f9
jmp 0x125f9
jmp 0x125f9
movq %rax, %rbp
jmp 0x12618
movq %rax, %rbp
jmp 0x12622
movq %rax, %rbp
jmp 0x1262c
movq %rax, %rbp
jmp 0x12636
movq %rax, %rbp
movq %r14, %rdi
callq 0xa440
movq 0x20(%rsp), %rdi
callq 0x26a2e
movq 0x28(%rsp), %rdi
callq 0x26a2e
movq 0x30(%rsp), %rdi
callq 0x26a2e
movq 0x50(%rbx), %rdi
cmpq 0x38(%rsp), %rdi
je 0x12646
callq 0xa440
movq 0x48(%rsp), %rax
movq (%rax), %rdi
cmpq 0x40(%rsp), %rdi
je 0x1265a
callq 0xa440
movq %rbp, %rdi
callq 0xa780