// File: /workspace/github_cpp_makefile_star2_O1/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 0x1f52e
movl $0x1, 0x30(%r14)
xorl %ebp, %ebp
movq 0x17147(%rip), %r15     # 0x36fd8
leaq 0xabeb(%rip), %r12      # 0x2aa83
leaq 0xabfe(%rip), %r13      # 0x2aa9d
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 0x1fb58
incl %ebp
cmpl 0x30(%r14), %ebp
jl 0x1fe9f
movq 0x170bf(%rip), %rbx     # 0x36fd8
leaq 0xab7f(%rip), %rsi      # 0x2aa9f
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 0x1708d(%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 0x1ffcf
movq 0x17060(%rip), %r15     # 0x36fd8
leaq 0xab2b(%rip), %r12      # 0x2aaaa
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 0x1ff7f
movq 0x17002(%rip), %rbx     # 0x36fd8
leaq 0xab2c(%rip), %rsi      # 0x2ab09
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 0x16fd0(%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 0x2008c
movq 0x16fa3(%rip), %r14     # 0x36fd8
leaq 0xaf56(%rip), %r15      # 0x2af92
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 0x2003c
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x200a9
jmp 0x200a9
jmp 0x200a9
jmp 0x200a9
jmp 0x200a9
movq %rax, %r14
movq (%rsp), %rdi
callq 0x136aa
movq %r14, %rdi
callq 0x43e0
nop