// File: /workspace/github_cpp_makefile_star2_O2/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), %r12
leaq 0x2aa94(%rip), %rsi     # 0x3c28d
leaq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0xa180
leaq 0x60(%rbx), %rax
movq %rax, 0x50(%rbx)
andq $0x0, 0x58(%rbx)
movb $0x0, 0x60(%rbx)
leaq 0x70(%rbx), %r13
movq %r13, %rdi
movq %r12, 0x38(%rsp)
callq 0x11b3e
leaq 0xa8(%rbx), %rdi
movq %rdi, 0x28(%rsp)
movq %r13, 0x30(%rsp)
callq 0x11b3e
leaq 0xe0(%rbx), %rdi
movq %rdi, 0x20(%rsp)
callq 0x11b3e
movq %r14, (%rbx)
movq %rbp, 0x8(%rbx)
leaq 0x10(%rsp), %rcx
andl $0x0, (%rcx)
leaq 0x1c(%rsp), %r8
movq %r14, %xmm0
punpckldq 0x2a7a0(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2a7a8(%rip), %xmm0    # 0x3c020
movl $0x3f800000, (%r8)      # imm = 0x3F800000
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x2a7ed(%rip), %xmm0    # 0x3c080
divsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
movaps 0x2a78a(%rip), %xmm1    # 0x3c030
xorps %xmm0, %xmm1
leaq 0x18(%rsp), %r9
movss %xmm1, (%r9)
leaq 0x14(%rsp), %r15
movss %xmm0, (%r15)
movq %r15, (%rsp)
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x27122
leaq 0x10(%rsp), %rcx
andl $0x0, (%rcx)
leaq 0x1c(%rsp), %r8
movl $0x3f800000, (%r8)      # imm = 0x3F800000
movq %rbp, %xmm0
punpckldq 0x2a720(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x2a728(%rip), %xmm0    # 0x3c020
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x2a774(%rip), %xmm0    # 0x3c080
divsd %xmm1, %xmm0
sqrtsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
movaps 0x2a711(%rip), %xmm1    # 0x3c030
xorps %xmm0, %xmm1
leaq 0x18(%rsp), %r9
movaps %xmm1, 0x40(%rsp)
movss %xmm1, (%r9)
movaps %xmm0, 0x50(%rsp)
movss %xmm0, 0x14(%rsp)
movq %r15, (%rsp)
movq 0x28(%rsp), %rdi
movq %rbp, %rsi
movq %rbp, %rdx
callq 0x27122
leaq 0x10(%rsp), %rcx
andl $0x0, (%rcx)
leaq 0x1c(%rsp), %r8
movl $0x3f800000, (%r8)      # imm = 0x3F800000
leaq 0x18(%rsp), %r9
movaps 0x40(%rsp), %xmm0
movss %xmm0, (%r9)
movaps 0x50(%rsp), %xmm0
movss %xmm0, 0x14(%rsp)
movq %r15, (%rsp)
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x27122
pushq $0x30
popq %rdi
callq 0xa490
movq %rax, %r14
movq 0x10(%rbx), %r13
pushq $0x18
popq %rdi
callq 0xa490
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
leaq 0x4e542(%rip), %rax     # 0x5ff00
movq %rax, (%r15)
movq %r15, %rdi
addq $0x8, %rdi
callq 0xcf2a
leaq 0x4e4dc(%rip), %rax     # 0x5feb0
movq %rax, (%r15)
pushq $0x18
popq %rdi
callq 0xa490
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
leaq 0x4e58c(%rip), %rax     # 0x5ff80
movq %rax, (%r12)
movq %r12, %rdi
addq $0x8, %rdi
callq 0xcf2a
leaq 0x4e51d(%rip), %rax     # 0x5ff28
movq %rax, (%r12)
movq %r14, %rdi
addq $0x20, %rdi
callq 0xcf2a
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 0x11a4e
movq %rax, %rbp
movq %r15, %rdi
callq 0xa470
jmp 0x11a72
jmp 0x11a5b
jmp 0x11a5b
jmp 0x11a5b
movq %rax, %rbp
jmp 0x11a7a
movq %rax, %rbp
jmp 0x11a84
movq %rax, %rbp
jmp 0x11a8e
movq %rax, %rbp
jmp 0x11a98
movq %rax, %rbp
movq %r14, %rdi
callq 0xa470
movq 0x20(%rsp), %rdi
callq 0x23a32
movq 0x28(%rsp), %rdi
callq 0x23a32
movq 0x30(%rsp), %rdi
callq 0x23a32
addq $0x50, %rbx
movq %rbx, %rdi
callq 0xa1d0
movq 0x38(%rsp), %rdi
callq 0xa1d0
movq %rbp, %rdi
callq 0xa7a0