// File: /workspace/github_cpp_makefile_star2_O3/xbai0624[P]dnn/src/Network.cpp
// Function: Network::Classify()
std::vector<Matrix> Network::Classify()
{
    std::vector<Matrix> res;
    ConstructLayers(TrainingType::ResumeTraining);

    __numberOfEpoch = 1; // test QQQQQQQQQQQQQQQQQQQQQQQQQQQQ
    for(int i=0;i<__numberOfEpoch;i++)
    {
        std::cout<<"[------]Number of epoch: "<<i<<"/"<<__numberOfEpoch<<endl;
        UpdateEpoch();
    }

    // check accuracy 
    cout<<"accuracy: "<<endl;
    std::vector<double> & accuracy = __outputLayer->GetAccuracyForBatches();
    for(auto &i: accuracy)
        cout<<i<<",   "<<endl;

    // check cost 
    cout<<"cost: "<<endl;
    std::vector<double> &cost = __outputLayer->GetCostForBatches();
    for(auto &i: cost)
        cout<<i<<", "<<endl;

    return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, (%rsp)
movq $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1f44e
movl $0x1, 0x30(%r14)
xorl %ebp, %ebp
movq 0x17219(%rip), %r15     # 0x36fd8
leaq 0xac7d(%rip), %r12      # 0x2aa43
leaq 0xac90(%rip), %r13      # 0x2aa5d
movl $0x19, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x4280
movq %r15, %rdi
movl %ebp, %esi
callq 0x43c0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x4280
movl 0x30(%r14), %esi
movq %rbx, %rdi
callq 0x43c0
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 %r14, %rdi
callq 0x1fa80
incl %ebp
cmpl 0x30(%r14), %ebp
jl 0x1fdcd
movq 0x17191(%rip), %rbx     # 0x36fd8
leaq 0xac11(%rip), %rsi      # 0x2aa5f
movl $0xa, %edx
movq %rbx, %rdi
callq 0x4280
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq 0x1715f(%rip), %rdi     # 0x36fd8
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x20(%r14), %rdi
movq (%rdi), %rax
callq *0x2d8(%rax)
movq (%rax), %rbx
movq 0x8(%rax), %rbp
cmpq %rbp, %rbx
je 0x1fefd
movq 0x17132(%rip), %r15     # 0x36fd8
leaq 0xabbd(%rip), %r12      # 0x2aa6a
movsd (%rbx), %xmm0
movq %r15, %rdi
callq 0x4340
movq %rax, %r13
movl $0x4, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x4280
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %r13, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
addq $0x8, %rbx
cmpq %rbp, %rbx
jne 0x1fead
movq 0x170d4(%rip), %rbx     # 0x36fd8
leaq 0xabbe(%rip), %rsi      # 0x2aac9
movl $0x6, %edx
movq %rbx, %rdi
callq 0x4280
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq 0x170a2(%rip), %rdi     # 0x36fd8
callq 0x4030
movq %rax, %rdi
callq 0x4190
movq 0x20(%r14), %rdi
movq (%rdi), %rax
callq *0x2e0(%rax)
movq (%rax), %rbx
movq 0x8(%rax), %r13
cmpq %r13, %rbx
je 0x1ffba
movq 0x17075(%rip), %r14     # 0x36fd8
leaq 0xafe8(%rip), %r15      # 0x2af52
movsd (%rbx), %xmm0
movq %r14, %rdi
callq 0x4340
movq %rax, %r12
movl $0x2, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x4280
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4250
movsbl %al, %esi
movq %r12, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4190
addq $0x8, %rbx
cmpq %r13, %rbx
jne 0x1ff6a
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1ffd7
jmp 0x1ffd7
jmp 0x1ffd7
jmp 0x1ffd7
jmp 0x1ffd7
movq %rax, %r14
movq (%rsp), %rdi
callq 0x1353a
movq %r14, %rdi
callq 0x43e0
nop