// File: /workspace/github_cpp_makefile_star2_O3/xbai0624[P]dnn/src/ConstructLayer.cpp
// Function: ConstructLayer::Print()
void ConstructLayer::Print()
{
    // layer id
    std::cout<<"----------- Layer ID: "<<GetID()<<" ------------"<<std::endl;
    // layer type
    if(__type == LayerType::cnn )std::cout<<"layer type: cnn"<<std::endl;
    else if(__type == LayerType::fullyConnected) std::cout<<"layer type: FC"<<std::endl;
    // drop out factor
    std::cout<<"drop out factor: "<<__dropOut<<std::endl;
    std::cout<<"use drop out: "<<__use_drop_out<<std::endl;
    if(__type == LayerType::fullyConnected)
        std::cout<<"number of fc neurons: "<<__n_neurons_fc<<std::endl;
    if(__type == LayerType::cnn)
    {
        std::cout<<"number of cnn kernels: "<<__n_kernels_cnn<<std::endl;
        std::cout<<"kernel  dimension: "<<__kernelDim<<std::endl;
    }
    // weight matrix
    std::cout<<" --- w&b "<<std::endl;
    for(size_t i=0;i<__weightMatrix.size();i++)
    {
        std::cout<<"weight matrix : "<<i<<std::endl;
        std::cout<<__weightMatrix[i]<<std::endl;
        std::cout<<"bias matrix: "<<i<<std::endl;
        std::cout<<__biasVector[i]<<std::endl;
    }
    // drop out filter
    std::cout<<" --- active flag matrix "<<std::endl;
    for(size_t i=0;i<__activeFlag.size();i++)
    {
        std::cout<<"active flag : "<<i<<std::endl;
        std::cout<<__activeFlag[i]<<std::endl;
    }

    // active weight matrix
    std::cout<<" --- active w&b "<<std::endl;
    for(size_t i=0;i<__weightMatrixActive.size();i++)
    {
        std::cout<<"active weight matrix : "<<i<<std::endl;
        std::cout<<__weightMatrixActive[i]<<std::endl;
        std::cout<<"active bias matrix: "<<i<<std::endl;
        std::cout<<__biasVectorActive[i]<<std::endl;
    }

    std::cout<<std::endl<<"==================================="<<std::endl;
    std::cout<<" --- neuron information: "<<std::endl;
    for(size_t ii=0;ii<__neurons.size();ii++)
    {
        auto __neuron_dimension = __neurons[ii].Dimension();
        std::cout<<"Neruon Matrix Dimension: "<<__neuron_dimension<<std::endl;

        for(size_t i=0;i<__neuron_dimension.first;i++)
        {
            for(size_t j=0;j<__neuron_dimension.second;j++)
            {
                std::cout<<"coord:  ("<<i<<", "<<j<<")"<<std::endl;
                __neurons[ii][i][j]->Print();
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r12
movq 0x24f3c(%rip), %r14     # 0x36fd8
leaq 0x172f8(%rip), %rsi     # 0x2939b
movl $0x16, %edx
movq %r14, %rdi
callq 0x4280
movq (%r12), %rax
movq %r12, %rdi
callq *0x298(%rax)
movq %r14, %rdi
movl %eax, %esi
callq 0x43c0
movq %rax, %rbx
leaq 0x172e1(%rip), %rsi     # 0x293b2
movl $0xd, %edx
movq %rax, %rdi
callq 0x4280
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movl 0xc(%r12), %eax
testl %eax, %eax
je 0x12128
cmpl $0x1, %eax
jne 0x12167
movq 0x24ebe(%rip), %rdi     # 0x36fd8
leaq 0x1729f(%rip), %rsi     # 0x293c0
movl $0xf, %edx
jmp 0x1213b
movq 0x24ea9(%rip), %rdi     # 0x36fd8
leaq 0x1729a(%rip), %rsi     # 0x293d0
movl $0xe, %edx
callq 0x4280
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x24e6a(%rip), %r14     # 0x36fd8
leaq 0x1726a(%rip), %rsi     # 0x293df
movl $0x11, %edx
movq %r14, %rdi
callq 0x4280
movsd 0x3d8(%r12), %xmm0
movq %r14, %rdi
callq 0x4340
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
leaq 0x1722c(%rip), %rsi     # 0x293f1
movl $0xe, %edx
movq %r14, %rdi
callq 0x4280
movzbl 0x3c8(%r12), %esi
movq %r14, %rdi
callq 0x4370
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movl 0xc(%r12), %eax
testl %eax, %eax
jne 0x1226d
movq 0x24dbb(%rip), %rbx     # 0x36fd8
leaq 0x171dc(%rip), %rsi     # 0x29400
movl $0x16, %edx
movq %rbx, %rdi
callq 0x4280
movq 0x10(%r12), %rsi
movq %rbx, %rdi
callq 0x4180
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movl 0xc(%r12), %eax
cmpl $0x1, %eax
jne 0x12313
movq 0x24d5b(%rip), %rbx     # 0x36fd8
leaq 0x17193(%rip), %rsi     # 0x29417
movl $0x17, %edx
movq %rbx, %rdi
callq 0x4280
movq 0x18(%r12), %rsi
movq %rbx, %rdi
callq 0x4180
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %r15, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
leaq 0x17160(%rip), %rsi     # 0x2942f
movl $0x13, %edx
movq %rbx, %rdi
callq 0x4280
leaq 0x20(%r12), %rsi
movq %rbx, %rdi
callq 0x1a5fa
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
leaq 0x17129(%rip), %rsi     # 0x29443
movl $0x9, %edx
movq 0x24cb2(%rip), %rbx     # 0x36fd8
movq %rbx, %rdi
callq 0x4280
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x68(%r12), %rax
cmpq 0x60(%r12), %rax
je 0x124a6
xorl %r14d, %r14d
movq 0x24c69(%rip), %r15     # 0x36fd8
leaq 0x1712f(%rip), %r13     # 0x294a5
xorl %ebp, %ebp
movl $0x10, %edx
movq %r15, %rdi
leaq 0x17106(%rip), %rsi     # 0x2948d
callq 0x4280
movq %r15, %rdi
movq %rbp, %rsi
callq 0x4180
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x60(%r12), %rsi
addq %r14, %rsi
movq %r15, %rdi
callq 0x1ba81
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movl $0xd, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x4280
movq %r15, %rdi
movq %rbp, %rsi
callq 0x4180
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x78(%r12), %rsi
addq %r14, %rsi
movq %r15, %rdi
callq 0x1ba81
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
incq %rbp
movq 0x68(%r12), %rax
subq 0x60(%r12), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
addq $0x18, %r14
cmpq %rax, %rbp
jb 0x12378
leaq 0x16fa0(%rip), %rsi     # 0x2944d
movl $0x18, %edx
movq 0x24b1f(%rip), %rbx     # 0x36fd8
movq %rbx, %rdi
callq 0x4280
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x110(%r12), %rax
cmpq 0x108(%r12), %rax
movq %r12, %rbp
je 0x125c6
xorl %r14d, %r14d
movq 0x24acd(%rip), %r15     # 0x36fd8
leaq 0x16f54(%rip), %r12     # 0x29466
xorl %r13d, %r13d
movl $0xe, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x4280
movq %r15, %rdi
movq %r13, %rsi
callq 0x4180
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x108(%rbp), %rsi
addq %r14, %rsi
movq %r15, %rdi
callq 0x1a1ca
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
incq %r13
movq 0x110(%rbp), %rax
subq 0x108(%rbp), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
addq $0x18, %r14
cmpq %rax, %r13
jb 0x12515
leaq 0x16ea8(%rip), %rsi     # 0x29475
movl $0x10, %edx
movq 0x249ff(%rip), %rbx     # 0x36fd8
movq %rbx, %rdi
callq 0x4280
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0xe0(%rbp), %rax
cmpq 0xd8(%rbp), %rax
movq %rbp, %r12
je 0x1276c
xorl %r14d, %r14d
movq 0x249af(%rip), %r15     # 0x36fd8
leaq 0x16e6e(%rip), %r13     # 0x2949e
xorl %ebp, %ebp
movl $0x17, %edx
movq %r15, %rdi
leaq 0x16e45(%rip), %rsi     # 0x29486
callq 0x4280
movq %r15, %rdi
movq %rbp, %rsi
callq 0x4180
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0xd8(%r12), %rsi
addq %r14, %rsi
movq %r15, %rdi
callq 0x1ba81
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movl $0x14, %edx
movq %r15, %rdi
movq %r13, %rsi
callq 0x4280
movq %r15, %rdi
movq %rbp, %rsi
callq 0x4180
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0xf0(%r12), %rsi
addq %r14, %rsi
movq %r15, %rdi
callq 0x1ba81
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
incq %rbp
movq 0xe0(%r12), %rax
subq 0xd8(%r12), %rax
sarq $0x3, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
addq $0x18, %r14
cmpq %rax, %rbp
jb 0x12632
movq 0x24865(%rip), %r14     # 0x36fd8
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq %rax, %rbx
leaq 0x16d0f(%rip), %rsi     # 0x294b3
movl $0x23, %edx
movq %rax, %rdi
callq 0x4280
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
leaq 0x16cf8(%rip), %rsi     # 0x294d7
movl $0x19, %edx
movq %r14, %rdi
callq 0x4280
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x40(%r12), %rax
cmpq %rax, 0x48(%r12)
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
je 0x129e6
xorl %edx, %edx
movq 0x247a2(%rip), %rbp     # 0x36fd8
leaq 0x16cce(%rip), %r13     # 0x2950b
movq %r12, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
leaq (%rdx,%rdx,2), %rcx
movq %rcx, 0x20(%rsp)
movq (%rax,%rcx,8), %rdx
movq 0x8(%rax,%rcx,8), %rax
subq %rdx, %rax
je 0x1286b
movq 0x8(%rdx), %rcx
subq (%rdx), %rcx
sarq $0x3, %rcx
jmp 0x1286d
xorl %ecx, %ecx
sarq $0x3, %rax
imulq %rsi, %rax
movq %rax, (%rsp)
movq %rcx, 0x8(%rsp)
movl $0x19, %edx
movq %rbp, %rdi
leaq 0x16c64(%rip), %rsi     # 0x294f1
callq 0x4280
movq %rbp, %rdi
movq %rsp, %rsi
callq 0x1a5fa
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq (%rsp), %rax
testq %rax, %rax
je 0x129b1
movq 0x8(%rsp), %rcx
xorl %r12d, %r12d
testq %rcx, %rcx
je 0x129a3
xorl %ebx, %ebx
movq 0x20(%rsp), %r15
movl $0x9, %edx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x4280
movq %rbp, %rdi
movq %r12, %rsi
callq 0x4180
movq %r13, %r14
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x18636(%rip), %rsi     # 0x2af52
callq 0x4280
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4180
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x173ac(%rip), %rsi     # 0x29cea
callq 0x4280
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %r13, %rdi
movq %r14, %r13
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x10(%rsp), %rax
movq 0x40(%rax), %rax
movq (%rax,%r15,8), %rax
leaq (%r12,%r12,2), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax,%rbx,8), %rdi
callq 0x21ea8
incq %rbx
movq 0x8(%rsp), %rcx
cmpq %rcx, %rbx
jb 0x128ec
movq (%rsp), %rax
jmp 0x129a5
xorl %ecx, %ecx
incq %r12
cmpq %rax, %r12
jb 0x128dc
movq 0x18(%rsp), %rdx
incq %rdx
movq 0x10(%rsp), %r12
movq 0x40(%r12), %rax
movq 0x48(%r12), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x5555555555555555, %rsi # imm = 0xAAAAAAAAAAAAAAAB
imulq %rsi, %rcx
cmpq %rcx, %rdx
jb 0x12842
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop