// File: /workspace/github_cpp_makefile_star2_O1/kazel1990[P]Inception-v4/generator.cpp
// Function: create_loss(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void create_loss(std::string prv)
{
    std::string cur = "average_pool";
    //pooling
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"Pooling\"");
    in_out(prv, cur);

    print("pooling_param {");
    print("pool: AVE");
    print("global_pooling: true");
    print("}");

    print("}");

    //dropout
    prv = cur;
    cur = "dropout";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"Dropout\"");
    in_out(prv, cur);

    print("dropout_param {");
    sprintf(buf,"dropout_ratio: %s",dropout_ratio);
    print(buf);
    print("}");

    print("}");

    //classifier
    prv = cur;
    cur = "classifier";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"InnerProduct\"");
    in_out(prv, cur);

    print("param {");
    print("lr_mult: 1");
    print("decay_mult: 1");
    print("}");

    print("param {");
    print("lr_mult: 2");
    print("decay_mult: 0");
    print("}");

    print("inner_product_param {");
    print("num_output: 1000");

    print("weight_filler {");
    print("type: \"xavier\"");
    print("}");

    print("bias_filler {");
    print("type: \"constant\"");
    print("value: 0");
    print("}");

    print("}");

    print("}");

    //loss
    prv = cur;
    cur = "loss/loss";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"SoftmaxWithLoss\"");
    in_out({prv, "label"}, cur);
    print("loss_weight: 1");
    print("}");

    cur = "loss/top-1";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"Accuracy\"");
    in_out({prv, "label"}, cur);
    print("include {");
    print("phase: TEST");
    print("}");
    print("}");

    cur = "loss/top-5";
    print("layer {");
    sprintf(buf,"name: \"%s\"",cur.c_str());
    print(buf);
    print("type: \"Accuracy\"");
    in_out({prv, "label"}, cur);
    print("include {");
    print("phase: TEST");
    print("}");
    print("accuracy_param {");
    print("top_k: 5");
    print("}");
    print("}");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1d8, %rsp            # imm = 0x1D8
movq %rdi, %rbx
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x2465(%rip), %rsi      # 0xe5df
leaq 0x246a(%rip), %rdx      # 0xe5eb
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0xd374
leaq 0x1e89(%rip), %rdi      # 0xe01e
callq 0x147c
movq (%r14), %rdx
leaq 0x5f5c(%rip), %r14      # 0x12100
leaq 0x1e7b(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x147c
leaq 0x201f(%rip), %rdi      # 0xe1e3
callq 0x147c
leaq 0xc0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0xb0(%rsp), %rdi
callq 0xd204
leaq 0x1c8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1b8(%rsp), %rdi
callq 0xd204
leaq 0xb0(%rsp), %rdi
leaq 0x1b8(%rsp), %r14
movq %r14, %rsi
callq 0x1574
movq (%r14), %rdi
cmpq %r13, %rdi
je 0xc242
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x10f0
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0xc25f
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0x1f8d(%rip), %rdi      # 0xe1f3
callq 0x147c
leaq 0x237a(%rip), %rdi      # 0xe5ec
callq 0x147c
leaq 0x2378(%rip), %rdi      # 0xe5f6
callq 0x147c
leaq 0x1dd4(%rip), %r14      # 0xe05e
movq %r14, %rdi
callq 0x147c
movq %r14, %rdi
callq 0x147c
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x10a0
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x2354(%rip), %rcx      # 0xe60b
movl $0x7, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x1d53(%rip), %rdi      # 0xe01e
callq 0x147c
movq 0x10(%rsp), %rdx
leaq 0x5e24(%rip), %r14      # 0x12100
leaq 0x1d43(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x147c
leaq 0x2317(%rip), %rdi      # 0xe613
callq 0x147c
leaq 0xa0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x90(%rsp), %rdi
callq 0xd204
leaq 0x1a8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x198(%rsp), %rdi
callq 0xd204
leaq 0x90(%rsp), %rdi
leaq 0x198(%rsp), %r14
movq %r14, %rsi
callq 0x1574
movq (%r14), %rdi
cmpq %r13, %rdi
je 0xc37a
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x10f0
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0xc397
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0x2285(%rip), %rdi      # 0xe623
callq 0x147c
leaq 0x5d56(%rip), %r14      # 0x12100
leaq 0x2282(%rip), %rsi      # 0xe633
leaq 0x24bc(%rip), %rdx      # 0xe874
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x147c
leaq 0x1c8d(%rip), %r14      # 0xe05e
movq %r14, %rdi
callq 0x147c
movq %r14, %rdi
callq 0x147c
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x10a0
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x2247(%rip), %rcx      # 0xe645
movl $0xa, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x1c0c(%rip), %rdi      # 0xe01e
callq 0x147c
movq 0x10(%rsp), %rdx
leaq 0x5cdd(%rip), %r14      # 0x12100
leaq 0x1bfc(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x147c
leaq 0x220d(%rip), %rdi      # 0xe650
callq 0x147c
leaq 0x80(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0xd204
leaq 0x188(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %rdi
callq 0xd204
leaq 0x70(%rsp), %rdi
leaq 0x178(%rsp), %r14
movq %r14, %rsi
callq 0x1574
movq (%r14), %rdi
cmpq %r13, %rdi
je 0xc4bb
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x10f0
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0xc4d5
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0x1dec(%rip), %r15      # 0xe2c8
movq %r15, %rdi
callq 0x147c
leaq 0x1b5a(%rip), %rdi      # 0xe045
callq 0x147c
leaq 0x1b59(%rip), %rdi      # 0xe050
callq 0x147c
leaq 0x1b5b(%rip), %r14      # 0xe05e
movq %r14, %rdi
callq 0x147c
movq %r15, %rdi
callq 0x147c
leaq 0x1b46(%rip), %rdi      # 0xe060
callq 0x147c
leaq 0x1b45(%rip), %rdi      # 0xe06b
callq 0x147c
movq %r14, %rdi
callq 0x147c
leaq 0x212b(%rip), %rdi      # 0xe665
callq 0x147c
leaq 0x2135(%rip), %rdi      # 0xe67b
callq 0x147c
leaq 0x1b9b(%rip), %rdi      # 0xe0ed
callq 0x147c
leaq 0x1b9f(%rip), %rdi      # 0xe0fd
callq 0x147c
movq %r14, %rdi
callq 0x147c
leaq 0x1ba2(%rip), %rdi      # 0xe114
callq 0x147c
leaq 0x1ba4(%rip), %rdi      # 0xe122
callq 0x147c
leaq 0x2102(%rip), %rdi      # 0xe68c
callq 0x147c
movq %r14, %rdi
callq 0x147c
movq %r14, %rdi
callq 0x147c
movq %r14, %rdi
callq 0x147c
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x10a0
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x20d1(%rip), %rcx      # 0xe695
movl $0x9, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x1a46(%rip), %rdi      # 0xe01e
callq 0x147c
movq 0x10(%rsp), %rdx
leaq 0x5b17(%rip), %r14      # 0x12100
leaq 0x1a36(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x147c
leaq 0x2096(%rip), %rdi      # 0xe69f
callq 0x147c
leaq 0x40(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0xd204
leaq 0x50(%rsp), %r14
leaq 0x60(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x2074(%rip), %rsi      # 0xe6b7
leaq 0x2072(%rip), %rdx      # 0xe6bc
movq %r14, %rdi
callq 0xd374
leaq 0x100(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x2, %edx
callq 0xd1b0
leaq 0x168(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x158(%rsp), %rdi
callq 0xd204
leaq 0x100(%rsp), %rdi
leaq 0x158(%rsp), %r14
movq %r14, %rsi
callq 0x1500
movq (%r14), %rdi
cmpq %r12, %rdi
je 0xc6c5
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0x100(%rsp), %rdi
callq 0xd154
movq $-0x40, %r14
movq -0x10(%rbp), %rdi
cmpq %rdi, %rbp
je 0xc6ee
movq (%rbp), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %rbp
addq $0x20, %r14
jne 0xc6d9
leaq 0x1fbe(%rip), %rdi      # 0xe6bd
callq 0x147c
leaq 0x1953(%rip), %rdi      # 0xe05e
callq 0x147c
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x1fac(%rip), %rcx      # 0xe6cc
movl $0xa, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x18ea(%rip), %rdi      # 0xe01e
callq 0x147c
movq 0x10(%rsp), %rdx
leaq 0x59bb(%rip), %r14      # 0x12100
leaq 0x18da(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x147c
leaq 0x1f72(%rip), %rdi      # 0xe6d7
callq 0x147c
leaq 0x30(%rsp), %r15
movq %r13, (%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xd204
leaq 0x50(%rsp), %r14
leaq 0x60(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x1f1e(%rip), %rsi      # 0xe6b7
leaq 0x1f1c(%rip), %rdx      # 0xe6bc
movq %r14, %rdi
callq 0xd374
leaq 0xe8(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x2, %edx
callq 0xd1b0
leaq 0x148(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0xd204
leaq 0xe8(%rsp), %rdi
leaq 0x138(%rsp), %r14
movq %r14, %rsi
callq 0x1500
movq (%r14), %rdi
cmpq %r12, %rdi
je 0xc81b
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0xe8(%rsp), %rdi
callq 0xd154
movq $-0x40, %r14
movq -0x10(%rbp), %rdi
cmpq %rdi, %rbp
je 0xc844
movq (%rbp), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %rbp
addq $0x20, %r14
jne 0xc82f
leaq 0x19f9(%rip), %rdi      # 0xe24e
callq 0x147c
leaq 0x1e87(%rip), %rdi      # 0xe6e8
callq 0x147c
leaq 0x17f1(%rip), %r14      # 0xe05e
movq %r14, %rdi
callq 0x147c
movq %r14, %rdi
callq 0x147c
leaq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x1e67(%rip), %rcx      # 0xe6f4
movl $0xa, %r8d
xorl %esi, %esi
callq 0x1140
leaq 0x177d(%rip), %rdi      # 0xe01e
callq 0x147c
movq 0x10(%rsp), %rdx
leaq 0x584e(%rip), %r14      # 0x12100
leaq 0x176d(%rip), %rsi      # 0xe026
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x147c
leaq 0x1e05(%rip), %rdi      # 0xe6d7
callq 0x147c
leaq 0x30(%rsp), %r15
movq %r13, (%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0xd204
leaq 0x50(%rsp), %r14
leaq 0x60(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1db1(%rip), %rsi      # 0xe6b7
leaq 0x1daf(%rip), %rdx      # 0xe6bc
movq %r14, %rdi
callq 0xd374
leaq 0xd0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0xf(%rsp), %rcx
movl $0x2, %edx
callq 0xd1b0
leaq 0x128(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
leaq 0x118(%rsp), %rdi
callq 0xd204
leaq 0xd0(%rsp), %rdi
leaq 0x118(%rsp), %rbx
movq %rbx, %rsi
callq 0x1500
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0xc988
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x10f0
leaq 0xd0(%rsp), %rdi
callq 0xd154
movq $-0x40, %rbx
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0xc9b1
movq (%r13), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r13
addq $0x20, %rbx
jne 0xc99c
leaq 0x188c(%rip), %rdi      # 0xe24e
callq 0x147c
leaq 0x1d1a(%rip), %rdi      # 0xe6e8
callq 0x147c
leaq 0x1684(%rip), %rbx      # 0xe05e
movq %rbx, %rdi
callq 0x147c
leaq 0x1d16(%rip), %rdi      # 0xe6ff
callq 0x147c
leaq 0x1d1b(%rip), %rdi      # 0xe710
callq 0x147c
movq %rbx, %rdi
callq 0x147c
movq %rbx, %rdi
callq 0x147c
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xca26
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10f0
addq $0x1d8, %rsp            # imm = 0x1D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0xd0(%rsp), %rdi
callq 0xd154
jmp 0xca4d
movq %rax, %rbx
xorl %r12d, %r12d
movq 0x50(%rsp,%r12), %rdi
leaq (%r12,%r13), %rax
cmpq %rdi, %rax
je 0xca69
movq (%rax), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r12
cmpq $-0x40, %r12
jne 0xca50
movb $0x1, %al
jmp 0xca86
movq %rax, %rbx
xorl %eax, %eax
jmp 0xca86
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0xcc35
addq $-0x10, %r14
leaq 0x30(%rsp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0xcab1
movq (%r14), %rsi
incq %rsi
callq 0x10f0
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0xca9d
jmp 0xcc35
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0xd154
jmp 0xcadb
movq %rax, %rbx
xorl %r12d, %r12d
movq 0x50(%rsp,%r12), %rdi
leaq (%r12,%rbp), %rax
cmpq %rdi, %rax
je 0xcaf7
movq (%rax), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r12
cmpq $-0x40, %r12
jne 0xcade
movb $0x1, %al
jmp 0xcb14
movq %rax, %rbx
xorl %eax, %eax
jmp 0xcb14
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0xcc35
addq $-0x10, %r14
leaq 0x30(%rsp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0xcb3f
movq (%r14), %rsi
incq %rsi
callq 0x10f0
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0xcb2b
jmp 0xcc35
movq %rax, %rbx
leaq 0x100(%rsp), %rdi
callq 0xd154
jmp 0xcb69
movq %rax, %rbx
xorl %r12d, %r12d
movq 0x50(%rsp,%r12), %rdi
leaq (%r12,%rbp), %rax
cmpq %rdi, %rax
je 0xcb85
movq (%rax), %rsi
incq %rsi
callq 0x10f0
addq $-0x20, %r12
cmpq $-0x40, %r12
jne 0xcb6c
movb $0x1, %al
jmp 0xcba2
movq %rax, %rbx
xorl %eax, %eax
jmp 0xcba2
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0xcc35
addq $-0x10, %r14
leaq 0x30(%rsp), %r15
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0xcbcd
movq (%r14), %rsi
incq %rsi
callq 0x10f0
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %r15, %r14
movq %rax, %r14
jne 0xcbb9
jmp 0xcc35
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r15, %rdi
je 0xcc35
movq 0x80(%rsp), %rsi
jmp 0xcc28
movq %rax, %rbx
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0xcc35
movq 0xa0(%rsp), %rsi
jmp 0xcc28
movq %rax, %rbx
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0xcc35
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x10f0
jmp 0xcc35
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xcc51
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x10f0
movq %rbx, %rdi
callq 0x1160