// File: /workspace/github_cpp_makefile_star2_O1/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 $0x38, %rsp
movq %rdi, %r12
movq 0x24de4(%rip), %r14     # 0x36fd8
leaq 0x171df(%rip), %rsi     # 0x293da
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 0x171c8(%rip), %rsi     # 0x293f1
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 0x12280
cmpl $0x1, %eax
jne 0x122bf
movq 0x24d66(%rip), %rdi     # 0x36fd8
leaq 0x17186(%rip), %rsi     # 0x293ff
movl $0xf, %edx
jmp 0x12293
movq 0x24d51(%rip), %rdi     # 0x36fd8
leaq 0x17181(%rip), %rsi     # 0x2940f
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 0x24d12(%rip), %r14     # 0x36fd8
leaq 0x17151(%rip), %rsi     # 0x2941e
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 0x17113(%rip), %rsi     # 0x29430
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
cmpl $0x0, 0xc(%r12)
jne 0x123bf
movq 0x24c64(%rip), %rbx     # 0x36fd8
leaq 0x170c4(%rip), %rsi     # 0x2943f
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
cmpl $0x1, 0xc(%r12)
jne 0x12468
movq 0x24c06(%rip), %rbx     # 0x36fd8
leaq 0x1707d(%rip), %rsi     # 0x29456
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 0x1704a(%rip), %rsi     # 0x2946e
movl $0x13, %edx
movq %rbx, %rdi
callq 0x4280
leaq 0x20(%r12), %rsi
movq %rbx, %rdi
callq 0x1a69a
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 0x17013(%rip), %rsi     # 0x29482
movl $0x9, %edx
movq 0x24b5d(%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 0x125fb
xorl %r14d, %r14d
movq 0x24b14(%rip), %r15     # 0x36fd8
leaq 0x17019(%rip), %r13     # 0x294e4
xorl %ebp, %ebp
movl $0x10, %edx
movq %r15, %rdi
leaq 0x16ff0(%rip), %rsi     # 0x294cc
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 0x1bb59
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 0x1bb59
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 0x124cd
leaq 0x16e8a(%rip), %rsi     # 0x2948c
movl $0x18, %edx
movq 0x249ca(%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 0x1271b
xorl %r14d, %r14d
movq 0x24978(%rip), %r15     # 0x36fd8
leaq 0x16e3e(%rip), %r12     # 0x294a5
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 0x1a246
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 0x1266a
leaq 0x16d92(%rip), %rsi     # 0x294b4
movl $0x10, %edx
movq 0x248aa(%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 0x128c1
xorl %r14d, %r14d
movq 0x2485a(%rip), %r15     # 0x36fd8
leaq 0x16d58(%rip), %r13     # 0x294dd
xorl %ebp, %ebp
movl $0x17, %edx
movq %r15, %rdi
leaq 0x16d2f(%rip), %rsi     # 0x294c5
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 0x1bb59
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 0x1bb59
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 0x12787
movq 0x24710(%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 0x16bf9(%rip), %rsi     # 0x294f2
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 0x16be2(%rip), %rsi     # 0x29516
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 0x12b50
xorl %edx, %edx
movq 0x2464d(%rip), %r13     # 0x36fd8
leaq 0x16bb8(%rip), %rbp     # 0x2954a
movq %r12, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
leaq (%rdx,%rdx,2), %r14
movq (%rax,%r14,8), %rdx
movq 0x8(%rax,%r14,8), %rax
subq %rdx, %rax
je 0x129c3
sarq $0x3, %rax
imulq %rsi, %rax
movq 0x8(%rdx), %rcx
subq (%rdx), %rcx
sarq $0x3, %rcx
jmp 0x129c7
xorl %eax, %eax
xorl %ecx, %ecx
movq %rax, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movl $0x19, %edx
movq %r13, %rdi
leaq 0x16b50(%rip), %rsi     # 0x29530
callq 0x4280
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
callq 0x1a69a
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
cmpq $0x0, 0x8(%rsp)
je 0x12b1b
xorl %r12d, %r12d
cmpq $0x0, 0x10(%rsp)
movq 0x18(%rsp), %r15
je 0x12b0d
leaq (%r12,%r12,2), %rax
movq %rax, 0x28(%rsp)
xorl %ebx, %ebx
movq %r12, 0x30(%rsp)
movl $0x9, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4280
movq %r13, %rdi
movq %r12, %rsi
callq 0x4180
movq %r15, %r12
movq %r14, %r15
movq %rbp, %r14
movq %r13, %rbp
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
leaq 0x1850d(%rip), %rsi     # 0x2af92
callq 0x4280
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4180
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x17282(%rip), %rsi     # 0x29d29
callq 0x4280
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %r13, %rdi
movq %rbp, %r13
movq %r14, %rbp
movq %r15, %r14
movq %r12, %r15
movq 0x30(%rsp), %r12
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x40(%r15), %rax
movq (%rax,%r14,8), %rax
movq 0x28(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq (%rax,%rbx,8), %rdi
callq 0x21f92
incq %rbx
cmpq 0x10(%rsp), %rbx
jb 0x12a4c
incq %r12
cmpq 0x8(%rsp), %r12
jb 0x12a2b
movq 0x20(%rsp), %rdx
incq %rdx
movq 0x18(%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 0x12997
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop