import torch
from torch._inductor.select_algorithm import extern_kernels
import triton
import triton.language as tl
from torch._inductor.runtime.triton_heuristics import grid
from torch._C import _cuda_getCurrentRawStream as get_raw_stream
from torch._inductor.runtime import triton_helpers
from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math
import torch.nn as nn
assert_size_stride = torch._C._dynamo.guards.assert_size_stride
empty_strided_cuda = torch._C._dynamo.guards._empty_strided_cuda
reinterpret_tensor = torch._C._dynamo.guards._reinterpret_tensor


@triton.jit
def triton_poi_fused_reflection_pad2d_0(in_ptr0, out_ptr0, xnumel, XBLOCK:
    tl.constexpr):
    xnumel = 65712
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex % 74
    x1 = xindex // 74 % 74
    x2 = xindex // 5476
    x3 = xindex
    tmp0 = tl.load(in_ptr0 + (4095 + -1 * tl_math.abs(-63 + tl_math.abs(-5 +
        x0)) + -64 * tl_math.abs(-63 + tl_math.abs(-5 + x1)) + 4096 * x2),
        xmask, eviction_policy='evict_last')
    tl.store(out_ptr0 + x3, tmp0, xmask)


@triton.jit
def triton_red_fused__native_batch_norm_legit_convolution_1(in_out_ptr0,
    in_out_ptr1, in_ptr0, out_ptr0, xnumel, rnumel, XBLOCK: tl.constexpr,
    RBLOCK: tl.constexpr):
    xnumel = 128
    rnumel = 4356
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:, None]
    xmask = xindex < xnumel
    rbase = tl.arange(0, RBLOCK)[None, :]
    x3 = xindex
    x0 = xindex % 32
    tmp1 = tl.load(in_ptr0 + x0, xmask, eviction_policy='evict_last')
    tmp4_mean = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    tmp4_m2 = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    tmp4_weight = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    for roffset in range(0, rnumel, RBLOCK):
        rindex = roffset + rbase
        rmask = rindex < rnumel
        r2 = rindex
        tmp0 = tl.load(in_out_ptr0 + (r2 + 4356 * x3), rmask & xmask,
            eviction_policy='evict_first', other=0.0)
        tmp2 = tmp0 + tmp1
        tmp3 = tl.broadcast_to(tmp2, [XBLOCK, RBLOCK])
        tmp4_mean_next, tmp4_m2_next, tmp4_weight_next = (triton_helpers.
            welford_reduce(tmp3, tmp4_mean, tmp4_m2, tmp4_weight, roffset == 0)
            )
        tmp4_mean = tl.where(rmask & xmask, tmp4_mean_next, tmp4_mean)
        tmp4_m2 = tl.where(rmask & xmask, tmp4_m2_next, tmp4_m2)
        tmp4_weight = tl.where(rmask & xmask, tmp4_weight_next, tmp4_weight)
        tl.store(in_out_ptr0 + (r2 + 4356 * x3), tmp2, rmask & xmask)
    tmp4_tmp, tmp5_tmp, tmp6_tmp = triton_helpers.welford(tmp4_mean,
        tmp4_m2, tmp4_weight, 1)
    tmp4 = tmp4_tmp[:, None]
    tmp5 = tmp5_tmp[:, None]
    tmp6_tmp[:, None]
    tl.store(out_ptr0 + x3, tmp4, xmask)
    tmp7 = 4356.0
    tmp8 = tmp5 / tmp7
    tmp9 = 1e-05
    tmp10 = tmp8 + tmp9
    tmp11 = libdevice.rsqrt(tmp10)
    tl.debug_barrier()
    tl.store(in_out_ptr1 + x3, tmp11, xmask)


@triton.jit
def triton_poi_fused_repeat_2(in_ptr0, out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xnumel = 128
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex
    tmp0 = tl.load(in_ptr0 + x0 % 32, xmask)
    tl.store(out_ptr0 + x0, tmp0, xmask)


@triton.jit
def triton_poi_fused_reflection_pad2d_relu_3(in_ptr0, in_ptr1, in_ptr2,
    in_ptr3, in_ptr4, out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xnumel = 574592
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex % 67
    x1 = xindex // 67 % 67
    x2 = xindex // 4489
    x3 = xindex
    tmp0 = tl.load(in_ptr0 + (4355 + -1 * tl_math.abs(-65 + tl_math.abs(-1 +
        x0)) + -66 * tl_math.abs(-65 + tl_math.abs(-1 + x1)) + 4356 * x2),
        xmask, eviction_policy='evict_last')
    tmp1 = tl.load(in_ptr1 + x2, xmask, eviction_policy='evict_last')
    tmp3 = tl.load(in_ptr2 + x2, xmask, eviction_policy='evict_last')
    tmp5 = tl.load(in_ptr3 + x2, xmask, eviction_policy='evict_last')
    tmp7 = tl.load(in_ptr4 + x2, xmask, eviction_policy='evict_last')
    tmp2 = tmp0 - tmp1
    tmp4 = tmp2 * tmp3
    tmp6 = tmp4 * tmp5
    tmp8 = tmp6 + tmp7
    tmp9 = tl.full([1], 0, tl.int32)
    tmp10 = triton_helpers.maximum(tmp9, tmp8)
    tl.store(out_ptr0 + x3, tmp10, xmask)


@triton.jit
def triton_red_fused__native_batch_norm_legit_convolution_4(in_out_ptr0,
    in_out_ptr1, in_ptr0, out_ptr0, xnumel, rnumel, XBLOCK: tl.constexpr,
    RBLOCK: tl.constexpr):
    xnumel = 256
    rnumel = 1089
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:, None]
    xmask = xindex < xnumel
    rbase = tl.arange(0, RBLOCK)[None, :]
    x3 = xindex
    x0 = xindex % 64
    tmp1 = tl.load(in_ptr0 + x0, xmask, eviction_policy='evict_last')
    tmp4_mean = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    tmp4_m2 = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    tmp4_weight = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    for roffset in range(0, rnumel, RBLOCK):
        rindex = roffset + rbase
        rmask = rindex < rnumel
        r2 = rindex
        tmp0 = tl.load(in_out_ptr0 + (r2 + 1089 * x3), rmask & xmask,
            eviction_policy='evict_first', other=0.0)
        tmp2 = tmp0 + tmp1
        tmp3 = tl.broadcast_to(tmp2, [XBLOCK, RBLOCK])
        tmp4_mean_next, tmp4_m2_next, tmp4_weight_next = (triton_helpers.
            welford_reduce(tmp3, tmp4_mean, tmp4_m2, tmp4_weight, roffset == 0)
            )
        tmp4_mean = tl.where(rmask & xmask, tmp4_mean_next, tmp4_mean)
        tmp4_m2 = tl.where(rmask & xmask, tmp4_m2_next, tmp4_m2)
        tmp4_weight = tl.where(rmask & xmask, tmp4_weight_next, tmp4_weight)
        tl.store(in_out_ptr0 + (r2 + 1089 * x3), tmp2, rmask & xmask)
    tmp4_tmp, tmp5_tmp, tmp6_tmp = triton_helpers.welford(tmp4_mean,
        tmp4_m2, tmp4_weight, 1)
    tmp4 = tmp4_tmp[:, None]
    tmp5 = tmp5_tmp[:, None]
    tmp6_tmp[:, None]
    tl.store(out_ptr0 + x3, tmp4, xmask)
    tmp7 = 1089.0
    tmp8 = tmp5 / tmp7
    tmp9 = 1e-05
    tmp10 = tmp8 + tmp9
    tmp11 = libdevice.rsqrt(tmp10)
    tl.debug_barrier()
    tl.store(in_out_ptr1 + x3, tmp11, xmask)


@triton.jit
def triton_poi_fused_repeat_5(in_ptr0, out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xnumel = 256
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex
    tmp0 = tl.load(in_ptr0 + x0 % 64, xmask)
    tl.store(out_ptr0 + x0, tmp0, xmask)


@triton.jit
def triton_poi_fused_reflection_pad2d_relu_6(in_ptr0, in_ptr1, in_ptr2,
    in_ptr3, in_ptr4, out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xnumel = 295936
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex % 34
    x1 = xindex // 34 % 34
    x2 = xindex // 1156
    x3 = xindex
    tmp0 = tl.load(in_ptr0 + (1088 + -1 * tl_math.abs(-32 + tl_math.abs(-1 +
        x0)) + -33 * tl_math.abs(-32 + tl_math.abs(-1 + x1)) + 1089 * x2),
        xmask, eviction_policy='evict_last')
    tmp1 = tl.load(in_ptr1 + x2, xmask, eviction_policy='evict_last')
    tmp3 = tl.load(in_ptr2 + x2, xmask, eviction_policy='evict_last')
    tmp5 = tl.load(in_ptr3 + x2, xmask, eviction_policy='evict_last')
    tmp7 = tl.load(in_ptr4 + x2, xmask, eviction_policy='evict_last')
    tmp2 = tmp0 - tmp1
    tmp4 = tmp2 * tmp3
    tmp6 = tmp4 * tmp5
    tmp8 = tmp6 + tmp7
    tmp9 = tl.full([1], 0, tl.int32)
    tmp10 = triton_helpers.maximum(tmp9, tmp8)
    tl.store(out_ptr0 + x3, tmp10, xmask)


@triton.jit
def triton_per_fused__native_batch_norm_legit_convolution_7(in_out_ptr0,
    in_out_ptr1, in_ptr0, out_ptr0, xnumel, rnumel):
    XBLOCK: tl.constexpr = 1
    RBLOCK: tl.constexpr = 256
    xoffset = tl.program_id(0) * XBLOCK
    xindex = tl.full([1], xoffset, tl.int32)
    tl.full([RBLOCK], True, tl.int1)
    rindex = tl.arange(0, RBLOCK)[:]
    tl.full([RBLOCK], True, tl.int1)
    r2 = rindex
    x3 = xindex
    x0 = xindex % 128
    tmp0 = tl.load(in_out_ptr0 + (r2 + 256 * x3), None)
    tmp1 = tl.load(in_ptr0 + x0, None, eviction_policy='evict_last')
    tmp2 = tmp0 + tmp1
    tmp3 = tl.broadcast_to(tmp2, [RBLOCK])
    tmp5 = tl.broadcast_to(tmp3, [RBLOCK])
    tmp7 = triton_helpers.promote_to_tensor(tl.sum(tmp5, 0))
    tmp8 = tl.full([1], 256, tl.int32)
    tmp9 = tmp8.to(tl.float32)
    tmp10 = tmp7 / tmp9
    tmp11 = tmp3 - tmp10
    tmp12 = tmp11 * tmp11
    tmp13 = tl.broadcast_to(tmp12, [RBLOCK])
    tmp15 = triton_helpers.promote_to_tensor(tl.sum(tmp13, 0))
    tmp16 = 256.0
    tmp17 = tmp15 / tmp16
    tmp18 = 1e-05
    tmp19 = tmp17 + tmp18
    tmp20 = libdevice.rsqrt(tmp19)
    tl.store(in_out_ptr0 + (r2 + 256 * x3), tmp2, None)
    tl.debug_barrier()
    tl.store(in_out_ptr1 + x3, tmp20, None)
    tl.store(out_ptr0 + x3, tmp10, None)


@triton.jit
def triton_poi_fused_repeat_8(in_ptr0, out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xnumel = 512
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex
    tmp0 = tl.load(in_ptr0 + x0 % 128, xmask)
    tl.store(out_ptr0 + x0, tmp0, xmask)


@triton.jit
def triton_poi_fused_reflection_pad2d_relu_9(in_ptr0, in_ptr1, in_ptr2,
    in_ptr3, in_ptr4, out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    tl.full([XBLOCK], True, tl.int1)
    x0 = xindex % 18
    x1 = xindex // 18 % 18
    x2 = xindex // 324
    x3 = xindex
    tmp0 = tl.load(in_ptr0 + (255 + -1 * tl_math.abs(-15 + tl_math.abs(-1 +
        x0)) + -16 * tl_math.abs(-15 + tl_math.abs(-1 + x1)) + 256 * x2),
        None, eviction_policy='evict_last')
    tmp1 = tl.load(in_ptr1 + x2, None, eviction_policy='evict_last')
    tmp3 = tl.load(in_ptr2 + x2, None, eviction_policy='evict_last')
    tmp5 = tl.load(in_ptr3 + x2, None, eviction_policy='evict_last')
    tmp7 = tl.load(in_ptr4 + x2, None, eviction_policy='evict_last')
    tmp2 = tmp0 - tmp1
    tmp4 = tmp2 * tmp3
    tmp6 = tmp4 * tmp5
    tmp8 = tmp6 + tmp7
    tmp9 = tl.full([1], 0, tl.int32)
    tmp10 = triton_helpers.maximum(tmp9, tmp8)
    tl.store(out_ptr0 + x3, tmp10, None)


@triton.jit
def triton_per_fused__native_batch_norm_legit_convolution_relu_repeat_10(
    in_out_ptr0, in_out_ptr1, in_ptr0, in_ptr1, in_ptr2, out_ptr0, out_ptr1,
    out_ptr2, out_ptr3, xnumel, rnumel):
    XBLOCK: tl.constexpr = 1
    RBLOCK: tl.constexpr = 256
    xoffset = tl.program_id(0) * XBLOCK
    xindex = tl.full([1], xoffset, tl.int32)
    tl.full([RBLOCK], True, tl.int1)
    rindex = tl.arange(0, RBLOCK)[:]
    tl.full([RBLOCK], True, tl.int1)
    x0 = xindex
    r3 = rindex
    x1 = xindex % 128
    tmp0 = tl.load(in_ptr0 + x0 % 128, None, eviction_policy='evict_last')
    tmp1 = tl.load(in_ptr1 + x0 % 128, None, eviction_policy='evict_last')
    tmp2 = tl.load(in_out_ptr0 + (r3 + 256 * x0), None)
    tmp3 = tl.load(in_ptr2 + x1, None, eviction_policy='evict_last')
    tmp4 = tmp2 + tmp3
    tmp5 = tl.broadcast_to(tmp4, [RBLOCK])
    tmp7 = tl.broadcast_to(tmp5, [RBLOCK])
    tmp9 = triton_helpers.promote_to_tensor(tl.sum(tmp7, 0))
    tmp10 = tl.full([1], 256, tl.int32)
    tmp11 = tmp10.to(tl.float32)
    tmp12 = tmp9 / tmp11
    tmp13 = tmp5 - tmp12
    tmp14 = tmp13 * tmp13
    tmp15 = tl.broadcast_to(tmp14, [RBLOCK])
    tmp17 = triton_helpers.promote_to_tensor(tl.sum(tmp15, 0))
    tmp18 = 256.0
    tmp19 = tmp17 / tmp18
    tmp20 = 1e-05
    tmp21 = tmp19 + tmp20
    tmp22 = libdevice.rsqrt(tmp21)
    tmp23 = tmp4 - tmp12
    tmp24 = tmp23 * tmp22
    tmp25 = tmp24 * tmp0
    tmp26 = tmp25 + tmp1
    tmp27 = tl.full([1], 0, tl.int32)
    tmp28 = triton_helpers.maximum(tmp27, tmp26)
    tl.store(out_ptr0 + x0, tmp0, None)
    tl.store(out_ptr1 + x0, tmp1, None)
    tl.store(in_out_ptr0 + (r3 + 256 * x0), tmp4, None)
    tl.debug_barrier()
    tl.store(in_out_ptr1 + x0, tmp22, None)
    tl.store(out_ptr3 + (r3 + 256 * x0), tmp28, None)
    tl.store(out_ptr2 + x0, tmp12, None)


@triton.jit
def triton_poi_fused_reflection_pad2d_11(in_ptr0, out_ptr0, xnumel, XBLOCK:
    tl.constexpr):
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    tl.full([XBLOCK], True, tl.int1)
    x0 = xindex % 18
    x1 = xindex // 18 % 18
    x2 = xindex // 324
    x3 = xindex
    tmp0 = tl.load(in_ptr0 + (255 + -1 * tl_math.abs(-15 + tl_math.abs(-1 +
        x0)) + -16 * tl_math.abs(-15 + tl_math.abs(-1 + x1)) + 256 * x2),
        None, eviction_policy='evict_last')
    tl.store(out_ptr0 + x3, tmp0, None)


@triton.jit
def triton_poi_fused_add_reflection_pad2d_relu_12(in_ptr0, in_ptr1, in_ptr2,
    in_ptr3, in_ptr4, in_ptr5, out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    tl.full([XBLOCK], True, tl.int1)
    x0 = xindex % 18
    x1 = xindex // 18 % 18
    x2 = xindex // 324
    x3 = xindex
    tmp0 = tl.load(in_ptr0 + (255 + -1 * tl_math.abs(-15 + tl_math.abs(-1 +
        x0)) + -16 * tl_math.abs(-15 + tl_math.abs(-1 + x1)) + 256 * x2),
        None, eviction_policy='evict_last')
    tmp1 = tl.load(in_ptr1 + (255 + -1 * tl_math.abs(-15 + tl_math.abs(-1 +
        x0)) + -16 * tl_math.abs(-15 + tl_math.abs(-1 + x1)) + 256 * x2),
        None, eviction_policy='evict_last')
    tmp2 = tl.load(in_ptr2 + x2, None, eviction_policy='evict_last')
    tmp4 = tl.load(in_ptr3 + x2, None, eviction_policy='evict_last')
    tmp6 = tl.load(in_ptr4 + x2, None, eviction_policy='evict_last')
    tmp8 = tl.load(in_ptr5 + x2, None, eviction_policy='evict_last')
    tmp3 = tmp1 - tmp2
    tmp5 = tmp3 * tmp4
    tmp7 = tmp5 * tmp6
    tmp9 = tmp7 + tmp8
    tmp10 = tl.full([1], 0, tl.int32)
    tmp11 = triton_helpers.maximum(tmp10, tmp9)
    tmp12 = tmp0 + tmp11
    tl.store(out_ptr0 + x3, tmp12, None)


@triton.jit
def triton_poi_fused_arange_13(out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xnumel = 32
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex
    tmp0 = x0
    tl.store(out_ptr0 + x0, tmp0, xmask)


@triton.jit
def triton_poi_fused__to_copy_add_arange_mul_14(out_ptr0, xnumel, XBLOCK:
    tl.constexpr):
    xnumel = 32
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex
    tmp0 = x0
    tmp1 = tmp0.to(tl.float32)
    tmp2 = 0.5
    tmp3 = tmp1 * tmp2
    tmp4 = tmp3.to(tl.int32)
    tl.store(out_ptr0 + x0, tmp4, xmask)


@triton.jit
def triton_poi_fused__unsafe_index_add_reflection_pad2d_relu_15(in_ptr0,
    in_ptr1, in_ptr2, in_ptr3, in_ptr4, in_ptr5, in_ptr6, out_ptr0, xnumel,
    XBLOCK: tl.constexpr):
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    tl.full([XBLOCK], True, tl.int1)
    x1 = xindex // 32 % 34
    x0 = xindex % 32
    x2 = xindex // 1088
    x4 = xindex
    tmp0 = tl.load(in_ptr0 + (31 + -1 * tl_math.abs(-31 + tl_math.abs(-1 +
        x1))), None, eviction_policy='evict_last')
    tmp5 = tl.load(in_ptr0 + x0, None, eviction_policy='evict_last')
    tmp11 = tl.load(in_ptr3 + x2, None, eviction_policy='evict_last')
    tmp13 = tl.load(in_ptr4 + x2, None, eviction_policy='evict_last')
    tmp15 = tl.load(in_ptr5 + x2, None, eviction_policy='evict_last')
    tmp17 = tl.load(in_ptr6 + x2, None, eviction_policy='evict_last')
    tmp1 = tl.full([XBLOCK], 16, tl.int32)
    tmp2 = tmp0 + tmp1
    tmp3 = tmp0 < 0
    tmp4 = tl.where(tmp3, tmp2, tmp0)
    tmp6 = tmp5 + tmp1
    tmp7 = tmp5 < 0
    tmp8 = tl.where(tmp7, tmp6, tmp5)
    tmp9 = tl.load(in_ptr1 + (255 + -1 * tl_math.abs(-15 + tmp8) + -16 *
        tl_math.abs(-15 + tmp4) + 256 * x2), None, eviction_policy='evict_last'
        )
    tmp10 = tl.load(in_ptr2 + (255 + -1 * tl_math.abs(-15 + tmp8) + -16 *
        tl_math.abs(-15 + tmp4) + 256 * x2), None, eviction_policy='evict_last'
        )
    tmp12 = tmp10 - tmp11
    tmp14 = tmp12 * tmp13
    tmp16 = tmp14 * tmp15
    tmp18 = tmp16 + tmp17
    tmp19 = tl.full([1], 0, tl.int32)
    tmp20 = triton_helpers.maximum(tmp19, tmp18)
    tmp21 = tmp9 + tmp20
    tl.store(out_ptr0 + x4, tmp21, None)


@triton.jit
def triton_poi_fused_reflection_pad2d_16(in_ptr0, out_ptr0, xnumel, XBLOCK:
    tl.constexpr):
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    tl.full([XBLOCK], True, tl.int1)
    x0 = xindex % 34
    x1 = xindex // 34
    x2 = xindex
    tmp0 = tl.load(in_ptr0 + (31 + -1 * tl_math.abs(-31 + tl_math.abs(-1 +
        x0)) + 32 * x1), None, eviction_policy='evict_last')
    tl.store(out_ptr0 + x2, tmp0, None)


@triton.jit
def triton_per_fused__native_batch_norm_legit_convolution_17(in_out_ptr0,
    in_out_ptr1, in_ptr0, out_ptr0, xnumel, rnumel):
    XBLOCK: tl.constexpr = 1
    RBLOCK: tl.constexpr = 1024
    xoffset = tl.program_id(0) * XBLOCK
    xindex = tl.full([1], xoffset, tl.int32)
    tl.full([RBLOCK], True, tl.int1)
    rindex = tl.arange(0, RBLOCK)[:]
    tl.full([RBLOCK], True, tl.int1)
    r2 = rindex
    x3 = xindex
    x0 = xindex % 64
    tmp0 = tl.load(in_out_ptr0 + (r2 + 1024 * x3), None)
    tmp1 = tl.load(in_ptr0 + x0, None, eviction_policy='evict_last')
    tmp2 = tmp0 + tmp1
    tmp3 = tl.broadcast_to(tmp2, [RBLOCK])
    tmp5 = tl.broadcast_to(tmp3, [RBLOCK])
    tmp7 = triton_helpers.promote_to_tensor(tl.sum(tmp5, 0))
    tmp8 = tl.full([1], 1024, tl.int32)
    tmp9 = tmp8.to(tl.float32)
    tmp10 = tmp7 / tmp9
    tmp11 = tmp3 - tmp10
    tmp12 = tmp11 * tmp11
    tmp13 = tl.broadcast_to(tmp12, [RBLOCK])
    tmp15 = triton_helpers.promote_to_tensor(tl.sum(tmp13, 0))
    tmp16 = 1024.0
    tmp17 = tmp15 / tmp16
    tmp18 = 1e-05
    tmp19 = tmp17 + tmp18
    tmp20 = libdevice.rsqrt(tmp19)
    tl.store(in_out_ptr0 + (r2 + 1024 * x3), tmp2, None)
    tl.debug_barrier()
    tl.store(in_out_ptr1 + x3, tmp20, None)
    tl.store(out_ptr0 + x3, tmp10, None)


@triton.jit
def triton_poi_fused_arange_18(out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xnumel = 64
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex
    tmp0 = x0
    tl.store(out_ptr0 + x0, tmp0, xmask)


@triton.jit
def triton_poi_fused__to_copy_add_arange_mul_19(out_ptr0, xnumel, XBLOCK:
    tl.constexpr):
    xnumel = 64
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x0 = xindex
    tmp0 = x0
    tmp1 = tmp0.to(tl.float32)
    tmp2 = 0.5
    tmp3 = tmp1 * tmp2
    tmp4 = tmp3.to(tl.int32)
    tl.store(out_ptr0 + x0, tmp4, xmask)


@triton.jit
def triton_poi_fused__unsafe_index_reflection_pad2d_relu_20(in_ptr0,
    in_ptr1, in_ptr2, in_ptr3, in_ptr4, in_ptr5, out_ptr0, xnumel, XBLOCK:
    tl.constexpr):
    xnumel = 1115136
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    xmask = xindex < xnumel
    x1 = xindex // 66 % 66
    x0 = xindex % 66
    x2 = xindex // 4356
    x5 = xindex
    tmp0 = tl.load(in_ptr0 + (63 + -1 * tl_math.abs(-63 + tl_math.abs(-1 +
        x1))), xmask, eviction_policy='evict_last')
    tmp5 = tl.load(in_ptr0 + (63 + -1 * tl_math.abs(-63 + tl_math.abs(-1 +
        x0))), xmask, eviction_policy='evict_last')
    tmp10 = tl.load(in_ptr2 + x2, xmask, eviction_policy='evict_last')
    tmp12 = tl.load(in_ptr3 + x2, xmask, eviction_policy='evict_last')
    tmp14 = tl.load(in_ptr4 + x2, xmask, eviction_policy='evict_last')
    tmp16 = tl.load(in_ptr5 + x2, xmask, eviction_policy='evict_last')
    tmp1 = tl.full([XBLOCK], 32, tl.int32)
    tmp2 = tmp0 + tmp1
    tmp3 = tmp0 < 0
    tmp4 = tl.where(tmp3, tmp2, tmp0)
    tmp6 = tmp5 + tmp1
    tmp7 = tmp5 < 0
    tmp8 = tl.where(tmp7, tmp6, tmp5)
    tmp9 = tl.load(in_ptr1 + (1023 + -1 * tl_math.abs(-31 + tmp8) + -32 *
        tl_math.abs(-31 + tmp4) + 1024 * x2), xmask, eviction_policy=
        'evict_last')
    tmp11 = tmp9 - tmp10
    tmp13 = tmp11 * tmp12
    tmp15 = tmp13 * tmp14
    tmp17 = tmp15 + tmp16
    tmp18 = tl.full([1], 0, tl.int32)
    tmp19 = triton_helpers.maximum(tmp18, tmp17)
    tl.store(out_ptr0 + x5, tmp19, xmask)


@triton.jit
def triton_red_fused__native_batch_norm_legit_convolution_21(in_out_ptr0,
    in_out_ptr1, in_ptr0, out_ptr0, xnumel, rnumel, XBLOCK: tl.constexpr,
    RBLOCK: tl.constexpr):
    xnumel = 128
    rnumel = 4096
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:, None]
    xmask = xindex < xnumel
    rbase = tl.arange(0, RBLOCK)[None, :]
    x3 = xindex
    x0 = xindex % 32
    tmp1 = tl.load(in_ptr0 + x0, xmask, eviction_policy='evict_last')
    tmp4_mean = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    tmp4_m2 = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    tmp4_weight = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    for roffset in range(0, rnumel, RBLOCK):
        rindex = roffset + rbase
        rmask = rindex < rnumel
        r2 = rindex
        tmp0 = tl.load(in_out_ptr0 + (r2 + 4096 * x3), rmask & xmask,
            eviction_policy='evict_first', other=0.0)
        tmp2 = tmp0 + tmp1
        tmp3 = tl.broadcast_to(tmp2, [XBLOCK, RBLOCK])
        tmp4_mean_next, tmp4_m2_next, tmp4_weight_next = (triton_helpers.
            welford_reduce(tmp3, tmp4_mean, tmp4_m2, tmp4_weight, roffset == 0)
            )
        tmp4_mean = tl.where(rmask & xmask, tmp4_mean_next, tmp4_mean)
        tmp4_m2 = tl.where(rmask & xmask, tmp4_m2_next, tmp4_m2)
        tmp4_weight = tl.where(rmask & xmask, tmp4_weight_next, tmp4_weight)
        tl.store(in_out_ptr0 + (r2 + 4096 * x3), tmp2, rmask & xmask)
    tmp4_tmp, tmp5_tmp, tmp6_tmp = triton_helpers.welford(tmp4_mean,
        tmp4_m2, tmp4_weight, 1)
    tmp4 = tmp4_tmp[:, None]
    tmp5 = tmp5_tmp[:, None]
    tmp6_tmp[:, None]
    tl.store(out_ptr0 + x3, tmp4, xmask)
    tmp7 = 4096.0
    tmp8 = tmp5 / tmp7
    tmp9 = 1e-05
    tmp10 = tmp8 + tmp9
    tmp11 = libdevice.rsqrt(tmp10)
    tl.debug_barrier()
    tl.store(in_out_ptr1 + x3, tmp11, xmask)


@triton.jit
def triton_poi_fused_reflection_pad2d_relu_22(in_ptr0, in_ptr1, in_ptr2,
    in_ptr3, in_ptr4, out_ptr0, xnumel, XBLOCK: tl.constexpr):
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:]
    tl.full([XBLOCK], True, tl.int1)
    x0 = xindex % 72
    x1 = xindex // 72 % 72
    x2 = xindex // 5184
    x3 = xindex
    tmp0 = tl.load(in_ptr0 + (4095 + -1 * tl_math.abs(-63 + tl_math.abs(-4 +
        x0)) + -64 * tl_math.abs(-63 + tl_math.abs(-4 + x1)) + 4096 * x2),
        None, eviction_policy='evict_last')
    tmp1 = tl.load(in_ptr1 + x2, None, eviction_policy='evict_last')
    tmp3 = tl.load(in_ptr2 + x2, None, eviction_policy='evict_last')
    tmp5 = tl.load(in_ptr3 + x2, None, eviction_policy='evict_last')
    tmp7 = tl.load(in_ptr4 + x2, None, eviction_policy='evict_last')
    tmp2 = tmp0 - tmp1
    tmp4 = tmp2 * tmp3
    tmp6 = tmp4 * tmp5
    tmp8 = tmp6 + tmp7
    tmp9 = tl.full([1], 0, tl.int32)
    tmp10 = triton_helpers.maximum(tmp9, tmp8)
    tl.store(out_ptr0 + x3, tmp10, None)


@triton.jit
def triton_red_fused__native_batch_norm_legit_convolution_repeat_sigmoid_23(
    in_out_ptr0, in_ptr0, in_ptr1, in_ptr2, out_ptr0, out_ptr1, out_ptr3,
    out_ptr4, xnumel, rnumel, XBLOCK: tl.constexpr, RBLOCK: tl.constexpr):
    xnumel = 12
    rnumel = 4096
    xoffset = tl.program_id(0) * XBLOCK
    xindex = xoffset + tl.arange(0, XBLOCK)[:, None]
    xmask = xindex < xnumel
    rbase = tl.arange(0, RBLOCK)[None, :]
    x0 = xindex
    tmp0 = tl.load(in_ptr0 + x0 % 3, xmask, eviction_policy='evict_last')
    tl.store(out_ptr0 + x0, tmp0, xmask)
    x1 = xindex % 3
    tmp2 = tl.load(in_ptr1 + x1, xmask, eviction_policy='evict_last')
    tmp5_mean = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    tmp5_m2 = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    tmp5_weight = tl.zeros([XBLOCK, RBLOCK], tl.float32)
    for roffset in range(0, rnumel, RBLOCK):
        rindex = roffset + rbase
        rmask = rindex < rnumel
        r3 = rindex
        tmp1 = tl.load(in_out_ptr0 + (r3 + 4096 * x0), rmask & xmask,
            eviction_policy='evict_last', other=0.0)
        tmp3 = tmp1 + tmp2
        tmp4 = tl.broadcast_to(tmp3, [XBLOCK, RBLOCK])
        tmp5_mean_next, tmp5_m2_next, tmp5_weight_next = (triton_helpers.
            welford_reduce(tmp4, tmp5_mean, tmp5_m2, tmp5_weight, roffset == 0)
            )
        tmp5_mean = tl.where(rmask & xmask, tmp5_mean_next, tmp5_mean)
        tmp5_m2 = tl.where(rmask & xmask, tmp5_m2_next, tmp5_m2)
        tmp5_weight = tl.where(rmask & xmask, tmp5_weight_next, tmp5_weight)
        tl.store(in_out_ptr0 + (r3 + 4096 * x0), tmp3, rmask & xmask)
    tmp5_tmp, tmp6_tmp, tmp7_tmp = triton_helpers.welford(tmp5_mean,
        tmp5_m2, tmp5_weight, 1)
    tmp5 = tmp5_tmp[:, None]
    tmp6 = tmp6_tmp[:, None]
    tmp7_tmp[:, None]
    tl.store(out_ptr1 + x0, tmp5, xmask)
    tmp17 = tl.load(in_ptr2 + x1, xmask, eviction_policy='evict_last')
    for roffset in range(0, rnumel, RBLOCK):
        rindex = roffset + rbase
        rmask = rindex < rnumel
        r3 = rindex
        tmp8 = tl.load(in_out_ptr0 + (r3 + 4096 * x0), rmask & xmask,
            eviction_policy='evict_first', other=0.0)
        tmp9 = tmp8 - tmp5
        tmp10 = 4096.0
        tmp11 = tmp6 / tmp10
        tmp12 = 1e-05
        tmp13 = tmp11 + tmp12
        tmp14 = libdevice.rsqrt(tmp13)
        tmp15 = tmp9 * tmp14
        tmp16 = tmp15 * tmp0
        tmp18 = tmp16 + tmp17
        tmp19 = tl.sigmoid(tmp18)
        tl.store(out_ptr3 + (r3 + 4096 * x0), tmp19, rmask & xmask)
    tmp20 = 4096.0
    tmp21 = tmp6 / tmp20
    tmp22 = 1e-05
    tmp23 = tmp21 + tmp22
    tmp24 = libdevice.rsqrt(tmp23)
    tl.store(out_ptr4 + x0, tmp24, xmask)


def call(args):
    (primals_1, primals_2, primals_3, primals_4, primals_5, primals_6,
        primals_7, primals_8, primals_9, primals_10, primals_11, primals_12,
        primals_13, primals_14, primals_15, primals_16, primals_17,
        primals_18, primals_19, primals_20, primals_21, primals_22,
        primals_23, primals_24, primals_25, primals_26, primals_27,
        primals_28, primals_29, primals_30, primals_31, primals_32,
        primals_33, primals_34, primals_35, primals_36, primals_37,
        primals_38, primals_39, primals_40, primals_41, primals_42,
        primals_43, primals_44, primals_45, primals_46, primals_47,
        primals_48, primals_49, primals_50, primals_51, primals_52,
        primals_53, primals_54, primals_55, primals_56, primals_57,
        primals_58, primals_59, primals_60, primals_61, primals_62,
        primals_63, primals_64, primals_65) = args
    args.clear()
    assert_size_stride(primals_1, (4, 3, 64, 64), (12288, 4096, 64, 1))
    assert_size_stride(primals_2, (32, 3, 9, 9), (243, 81, 9, 1))
    assert_size_stride(primals_3, (32,), (1,))
    assert_size_stride(primals_4, (32,), (1,))
    assert_size_stride(primals_5, (32,), (1,))
    assert_size_stride(primals_6, (64, 32, 3, 3), (288, 9, 3, 1))
    assert_size_stride(primals_7, (64,), (1,))
    assert_size_stride(primals_8, (64,), (1,))
    assert_size_stride(primals_9, (64,), (1,))
    assert_size_stride(primals_10, (128, 64, 3, 3), (576, 9, 3, 1))
    assert_size_stride(primals_11, (128,), (1,))
    assert_size_stride(primals_12, (128,), (1,))
    assert_size_stride(primals_13, (128,), (1,))
    assert_size_stride(primals_14, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_15, (128,), (1,))
    assert_size_stride(primals_16, (128,), (1,))
    assert_size_stride(primals_17, (128,), (1,))
    assert_size_stride(primals_18, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_19, (128,), (1,))
    assert_size_stride(primals_20, (128,), (1,))
    assert_size_stride(primals_21, (128,), (1,))
    assert_size_stride(primals_22, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_23, (128,), (1,))
    assert_size_stride(primals_24, (128,), (1,))
    assert_size_stride(primals_25, (128,), (1,))
    assert_size_stride(primals_26, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_27, (128,), (1,))
    assert_size_stride(primals_28, (128,), (1,))
    assert_size_stride(primals_29, (128,), (1,))
    assert_size_stride(primals_30, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_31, (128,), (1,))
    assert_size_stride(primals_32, (128,), (1,))
    assert_size_stride(primals_33, (128,), (1,))
    assert_size_stride(primals_34, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_35, (128,), (1,))
    assert_size_stride(primals_36, (128,), (1,))
    assert_size_stride(primals_37, (128,), (1,))
    assert_size_stride(primals_38, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_39, (128,), (1,))
    assert_size_stride(primals_40, (128,), (1,))
    assert_size_stride(primals_41, (128,), (1,))
    assert_size_stride(primals_42, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_43, (128,), (1,))
    assert_size_stride(primals_44, (128,), (1,))
    assert_size_stride(primals_45, (128,), (1,))
    assert_size_stride(primals_46, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_47, (128,), (1,))
    assert_size_stride(primals_48, (128,), (1,))
    assert_size_stride(primals_49, (128,), (1,))
    assert_size_stride(primals_50, (128, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_51, (128,), (1,))
    assert_size_stride(primals_52, (128,), (1,))
    assert_size_stride(primals_53, (128,), (1,))
    assert_size_stride(primals_54, (64, 128, 3, 3), (1152, 9, 3, 1))
    assert_size_stride(primals_55, (64,), (1,))
    assert_size_stride(primals_56, (64,), (1,))
    assert_size_stride(primals_57, (64,), (1,))
    assert_size_stride(primals_58, (32, 64, 3, 3), (576, 9, 3, 1))
    assert_size_stride(primals_59, (32,), (1,))
    assert_size_stride(primals_60, (32,), (1,))
    assert_size_stride(primals_61, (32,), (1,))
    assert_size_stride(primals_62, (3, 32, 9, 9), (2592, 81, 9, 1))
    assert_size_stride(primals_63, (3,), (1,))
    assert_size_stride(primals_64, (3,), (1,))
    assert_size_stride(primals_65, (3,), (1,))
    with torch.cuda._DeviceGuard(0):
        torch.cuda.set_device(0)
        buf0 = empty_strided_cuda((4, 3, 74, 74), (16428, 5476, 74, 1),
            torch.float32)
        get_raw_stream(0)
        triton_poi_fused_reflection_pad2d_0[grid(65712)](primals_1, buf0, 
            65712, XBLOCK=512, num_warps=8, num_stages=1)
        del primals_1
        buf1 = extern_kernels.convolution(buf0, primals_2, stride=(1, 1),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf1, (4, 32, 66, 66), (139392, 4356, 66, 1))
        buf2 = buf1
        del buf1
        buf5 = empty_strided_cuda((1, 128, 1, 1), (128, 1, 1, 1), torch.float32
            )
        buf6 = empty_strided_cuda((1, 128, 1, 1), (128, 1, 128, 128), torch
            .float32)
        buf8 = reinterpret_tensor(buf6, (1, 128, 1, 1), (128, 1, 1, 1), 0)
        del buf6
        triton_red_fused__native_batch_norm_legit_convolution_1[grid(128)](buf2
            , buf8, primals_3, buf5, 128, 4356, XBLOCK=1, RBLOCK=2048,
            num_warps=16, num_stages=1)
        del primals_3
        buf3 = empty_strided_cuda((128,), (1,), torch.float32)
        triton_poi_fused_repeat_2[grid(128)](primals_4, buf3, 128, XBLOCK=
            128, num_warps=4, num_stages=1)
        del primals_4
        buf4 = empty_strided_cuda((128,), (1,), torch.float32)
        triton_poi_fused_repeat_2[grid(128)](primals_5, buf4, 128, XBLOCK=
            128, num_warps=4, num_stages=1)
        del primals_5
        buf9 = empty_strided_cuda((4, 32, 67, 67), (143648, 4489, 67, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_relu_3[grid(574592)](buf2, buf5,
            buf8, buf3, buf4, buf9, 574592, XBLOCK=1024, num_warps=4,
            num_stages=1)
        buf10 = extern_kernels.convolution(buf9, primals_6, stride=(2, 2),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf10, (4, 64, 33, 33), (69696, 1089, 33, 1))
        buf11 = buf10
        del buf10
        buf14 = empty_strided_cuda((1, 256, 1, 1), (256, 1, 1, 1), torch.
            float32)
        buf15 = empty_strided_cuda((1, 256, 1, 1), (256, 1, 256, 256),
            torch.float32)
        buf17 = reinterpret_tensor(buf15, (1, 256, 1, 1), (256, 1, 1, 1), 0)
        del buf15
        triton_red_fused__native_batch_norm_legit_convolution_4[grid(256)](
            buf11, buf17, primals_7, buf14, 256, 1089, XBLOCK=1, RBLOCK=
            2048, num_warps=16, num_stages=1)
        del primals_7
        buf12 = empty_strided_cuda((256,), (1,), torch.float32)
        triton_poi_fused_repeat_5[grid(256)](primals_8, buf12, 256, XBLOCK=
            256, num_warps=4, num_stages=1)
        del primals_8
        buf13 = empty_strided_cuda((256,), (1,), torch.float32)
        triton_poi_fused_repeat_5[grid(256)](primals_9, buf13, 256, XBLOCK=
            256, num_warps=4, num_stages=1)
        del primals_9
        buf18 = empty_strided_cuda((4, 64, 34, 34), (73984, 1156, 34, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_relu_6[grid(295936)](buf11, buf14,
            buf17, buf12, buf13, buf18, 295936, XBLOCK=1024, num_warps=4,
            num_stages=1)
        buf19 = extern_kernels.convolution(buf18, primals_10, stride=(2, 2),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf19, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf20 = buf19
        del buf19
        buf23 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf24 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf26 = reinterpret_tensor(buf24, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf24
        triton_per_fused__native_batch_norm_legit_convolution_7[grid(512)](
            buf20, buf26, primals_11, buf23, 512, 256, num_warps=2,
            num_stages=1)
        del primals_11
        buf21 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_12, buf21, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_12
        buf22 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_13, buf22, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_13
        buf27 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_relu_9[grid(165888)](buf20, buf23,
            buf26, buf21, buf22, buf27, 165888, XBLOCK=512, num_warps=8,
            num_stages=1)
        buf28 = extern_kernels.convolution(buf27, primals_14, stride=(1, 1),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf28, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf30 = empty_strided_cuda((512,), (1,), torch.float32)
        buf31 = empty_strided_cuda((512,), (1,), torch.float32)
        buf29 = buf28
        del buf28
        buf32 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf33 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf35 = reinterpret_tensor(buf33, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf33
        buf36 = empty_strided_cuda((4, 128, 16, 16), (32768, 256, 16, 1),
            torch.float32)
        triton_per_fused__native_batch_norm_legit_convolution_relu_repeat_10[
            grid(512)](buf29, buf35, primals_16, primals_17, primals_15,
            buf30, buf31, buf32, buf36, 512, 256, num_warps=2, num_stages=1)
        del primals_15
        del primals_16
        del primals_17
        buf37 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_11[grid(165888)](buf36, buf37, 
            165888, XBLOCK=512, num_warps=8, num_stages=1)
        buf38 = extern_kernels.convolution(buf37, primals_18, stride=(1, 1),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf38, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf39 = buf38
        del buf38
        buf42 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf43 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf45 = reinterpret_tensor(buf43, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf43
        triton_per_fused__native_batch_norm_legit_convolution_7[grid(512)](
            buf39, buf45, primals_19, buf42, 512, 256, num_warps=2,
            num_stages=1)
        del primals_19
        buf40 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_20, buf40, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_20
        buf41 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_21, buf41, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_21
        buf46 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_add_reflection_pad2d_relu_12[grid(165888)](buf36,
            buf39, buf42, buf45, buf40, buf41, buf46, 165888, XBLOCK=512,
            num_warps=8, num_stages=1)
        buf47 = extern_kernels.convolution(buf46, primals_22, stride=(1, 1),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf47, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf49 = empty_strided_cuda((512,), (1,), torch.float32)
        buf50 = empty_strided_cuda((512,), (1,), torch.float32)
        buf48 = buf47
        del buf47
        buf51 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf52 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf54 = reinterpret_tensor(buf52, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf52
        buf55 = buf36
        del buf36
        triton_per_fused__native_batch_norm_legit_convolution_relu_repeat_10[
            grid(512)](buf48, buf54, primals_24, primals_25, primals_23,
            buf49, buf50, buf51, buf55, 512, 256, num_warps=2, num_stages=1)
        del primals_23
        del primals_24
        del primals_25
        buf56 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_11[grid(165888)](buf55, buf56, 
            165888, XBLOCK=512, num_warps=8, num_stages=1)
        buf57 = extern_kernels.convolution(buf56, primals_26, stride=(1, 1),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf57, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf58 = buf57
        del buf57
        buf61 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf62 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf64 = reinterpret_tensor(buf62, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf62
        triton_per_fused__native_batch_norm_legit_convolution_7[grid(512)](
            buf58, buf64, primals_27, buf61, 512, 256, num_warps=2,
            num_stages=1)
        del primals_27
        buf59 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_28, buf59, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_28
        buf60 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_29, buf60, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_29
        buf65 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_add_reflection_pad2d_relu_12[grid(165888)](buf55,
            buf58, buf61, buf64, buf59, buf60, buf65, 165888, XBLOCK=512,
            num_warps=8, num_stages=1)
        buf66 = extern_kernels.convolution(buf65, primals_30, stride=(1, 1),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf66, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf68 = empty_strided_cuda((512,), (1,), torch.float32)
        buf69 = empty_strided_cuda((512,), (1,), torch.float32)
        buf67 = buf66
        del buf66
        buf70 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf71 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf73 = reinterpret_tensor(buf71, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf71
        buf74 = buf55
        del buf55
        triton_per_fused__native_batch_norm_legit_convolution_relu_repeat_10[
            grid(512)](buf67, buf73, primals_32, primals_33, primals_31,
            buf68, buf69, buf70, buf74, 512, 256, num_warps=2, num_stages=1)
        del primals_31
        del primals_32
        del primals_33
        buf75 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_11[grid(165888)](buf74, buf75, 
            165888, XBLOCK=512, num_warps=8, num_stages=1)
        buf76 = extern_kernels.convolution(buf75, primals_34, stride=(1, 1),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf76, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf77 = buf76
        del buf76
        buf80 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf81 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf83 = reinterpret_tensor(buf81, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf81
        triton_per_fused__native_batch_norm_legit_convolution_7[grid(512)](
            buf77, buf83, primals_35, buf80, 512, 256, num_warps=2,
            num_stages=1)
        del primals_35
        buf78 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_36, buf78, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_36
        buf79 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_37, buf79, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_37
        buf84 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_add_reflection_pad2d_relu_12[grid(165888)](buf74,
            buf77, buf80, buf83, buf78, buf79, buf84, 165888, XBLOCK=512,
            num_warps=8, num_stages=1)
        buf85 = extern_kernels.convolution(buf84, primals_38, stride=(1, 1),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf85, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf87 = empty_strided_cuda((512,), (1,), torch.float32)
        buf88 = empty_strided_cuda((512,), (1,), torch.float32)
        buf86 = buf85
        del buf85
        buf89 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf90 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf92 = reinterpret_tensor(buf90, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf90
        buf93 = buf74
        del buf74
        triton_per_fused__native_batch_norm_legit_convolution_relu_repeat_10[
            grid(512)](buf86, buf92, primals_40, primals_41, primals_39,
            buf87, buf88, buf89, buf93, 512, 256, num_warps=2, num_stages=1)
        del primals_39
        del primals_40
        del primals_41
        buf94 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_11[grid(165888)](buf93, buf94, 
            165888, XBLOCK=512, num_warps=8, num_stages=1)
        buf95 = extern_kernels.convolution(buf94, primals_42, stride=(1, 1),
            padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf95, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf96 = buf95
        del buf95
        buf99 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf100 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf102 = reinterpret_tensor(buf100, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf100
        triton_per_fused__native_batch_norm_legit_convolution_7[grid(512)](
            buf96, buf102, primals_43, buf99, 512, 256, num_warps=2,
            num_stages=1)
        del primals_43
        buf97 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_44, buf97, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_44
        buf98 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_45, buf98, 512, XBLOCK
            =256, num_warps=4, num_stages=1)
        del primals_45
        buf103 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_add_reflection_pad2d_relu_12[grid(165888)](buf93,
            buf96, buf99, buf102, buf97, buf98, buf103, 165888, XBLOCK=512,
            num_warps=8, num_stages=1)
        buf104 = extern_kernels.convolution(buf103, primals_46, stride=(1, 
            1), padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf104, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf106 = empty_strided_cuda((512,), (1,), torch.float32)
        buf107 = empty_strided_cuda((512,), (1,), torch.float32)
        buf105 = buf104
        del buf104
        buf108 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf109 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf111 = reinterpret_tensor(buf109, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf109
        buf112 = buf93
        del buf93
        triton_per_fused__native_batch_norm_legit_convolution_relu_repeat_10[
            grid(512)](buf105, buf111, primals_48, primals_49, primals_47,
            buf106, buf107, buf108, buf112, 512, 256, num_warps=2, num_stages=1
            )
        del primals_47
        del primals_48
        del primals_49
        buf113 = empty_strided_cuda((4, 128, 18, 18), (41472, 324, 18, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_11[grid(165888)](buf112, buf113, 
            165888, XBLOCK=512, num_warps=8, num_stages=1)
        buf114 = extern_kernels.convolution(buf113, primals_50, stride=(1, 
            1), padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf114, (4, 128, 16, 16), (32768, 256, 16, 1))
        buf115 = buf114
        del buf114
        buf118 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 1, 1), torch.
            float32)
        buf119 = empty_strided_cuda((1, 512, 1, 1), (512, 1, 512, 512),
            torch.float32)
        buf121 = reinterpret_tensor(buf119, (1, 512, 1, 1), (512, 1, 1, 1), 0)
        del buf119
        triton_per_fused__native_batch_norm_legit_convolution_7[grid(512)](
            buf115, buf121, primals_51, buf118, 512, 256, num_warps=2,
            num_stages=1)
        del primals_51
        buf116 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_52, buf116, 512,
            XBLOCK=256, num_warps=4, num_stages=1)
        del primals_52
        buf117 = empty_strided_cuda((512,), (1,), torch.float32)
        triton_poi_fused_repeat_8[grid(512)](primals_53, buf117, 512,
            XBLOCK=256, num_warps=4, num_stages=1)
        del primals_53
        buf122 = empty_strided_cuda((32,), (1,), torch.int64)
        triton_poi_fused_arange_13[grid(32)](buf122, 32, XBLOCK=32,
            num_warps=1, num_stages=1)
        buf123 = empty_strided_cuda((32,), (1,), torch.int64)
        triton_poi_fused__to_copy_add_arange_mul_14[grid(32)](buf123, 32,
            XBLOCK=32, num_warps=1, num_stages=1)
        buf124 = empty_strided_cuda((4, 128, 34, 32), (139264, 1088, 32, 1),
            torch.float32)
        triton_poi_fused__unsafe_index_add_reflection_pad2d_relu_15[grid(
            557056)](buf123, buf112, buf115, buf118, buf121, buf116, buf117,
            buf124, 557056, XBLOCK=1024, num_warps=4, num_stages=1)
        del buf112
        buf125 = empty_strided_cuda((4, 128, 34, 34), (147968, 1156, 34, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_16[grid(591872)](buf124, buf125, 
            591872, XBLOCK=512, num_warps=8, num_stages=1)
        del buf124
        buf126 = extern_kernels.convolution(buf125, primals_54, stride=(1, 
            1), padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf126, (4, 64, 32, 32), (65536, 1024, 32, 1))
        buf127 = buf126
        del buf126
        buf130 = empty_strided_cuda((1, 256, 1, 1), (256, 1, 1, 1), torch.
            float32)
        buf131 = empty_strided_cuda((1, 256, 1, 1), (256, 1, 256, 256),
            torch.float32)
        buf133 = reinterpret_tensor(buf131, (1, 256, 1, 1), (256, 1, 1, 1), 0)
        del buf131
        triton_per_fused__native_batch_norm_legit_convolution_17[grid(256)](
            buf127, buf133, primals_55, buf130, 256, 1024, num_warps=8,
            num_stages=1)
        del primals_55
        buf128 = empty_strided_cuda((256,), (1,), torch.float32)
        triton_poi_fused_repeat_5[grid(256)](primals_56, buf128, 256,
            XBLOCK=256, num_warps=4, num_stages=1)
        del primals_56
        buf129 = empty_strided_cuda((256,), (1,), torch.float32)
        triton_poi_fused_repeat_5[grid(256)](primals_57, buf129, 256,
            XBLOCK=256, num_warps=4, num_stages=1)
        del primals_57
        buf134 = empty_strided_cuda((64,), (1,), torch.int64)
        triton_poi_fused_arange_18[grid(64)](buf134, 64, XBLOCK=64,
            num_warps=1, num_stages=1)
        buf135 = empty_strided_cuda((64,), (1,), torch.int64)
        triton_poi_fused__to_copy_add_arange_mul_19[grid(64)](buf135, 64,
            XBLOCK=64, num_warps=1, num_stages=1)
        buf136 = empty_strided_cuda((4, 64, 66, 66), (278784, 4356, 66, 1),
            torch.float32)
        triton_poi_fused__unsafe_index_reflection_pad2d_relu_20[grid(1115136)](
            buf135, buf127, buf130, buf133, buf128, buf129, buf136, 1115136,
            XBLOCK=512, num_warps=8, num_stages=1)
        buf137 = extern_kernels.convolution(buf136, primals_58, stride=(1, 
            1), padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf137, (4, 32, 64, 64), (131072, 4096, 64, 1))
        buf138 = buf137
        del buf137
        buf141 = empty_strided_cuda((1, 128, 1, 1), (128, 1, 1, 1), torch.
            float32)
        buf142 = empty_strided_cuda((1, 128, 1, 1), (128, 1, 128, 128),
            torch.float32)
        buf144 = reinterpret_tensor(buf142, (1, 128, 1, 1), (128, 1, 1, 1), 0)
        del buf142
        triton_red_fused__native_batch_norm_legit_convolution_21[grid(128)](
            buf138, buf144, primals_59, buf141, 128, 4096, XBLOCK=1, RBLOCK
            =2048, num_warps=16, num_stages=1)
        del primals_59
        buf139 = empty_strided_cuda((128,), (1,), torch.float32)
        triton_poi_fused_repeat_2[grid(128)](primals_60, buf139, 128,
            XBLOCK=128, num_warps=4, num_stages=1)
        del primals_60
        buf140 = empty_strided_cuda((128,), (1,), torch.float32)
        triton_poi_fused_repeat_2[grid(128)](primals_61, buf140, 128,
            XBLOCK=128, num_warps=4, num_stages=1)
        del primals_61
        buf145 = empty_strided_cuda((4, 32, 72, 72), (165888, 5184, 72, 1),
            torch.float32)
        triton_poi_fused_reflection_pad2d_relu_22[grid(663552)](buf138,
            buf141, buf144, buf139, buf140, buf145, 663552, XBLOCK=512,
            num_warps=8, num_stages=1)
        buf146 = extern_kernels.convolution(buf145, primals_62, stride=(1, 
            1), padding=(0, 0), dilation=(1, 1), transposed=False,
            output_padding=(0, 0), groups=1, bias=None)
        assert_size_stride(buf146, (4, 3, 64, 64), (12288, 4096, 64, 1))
        buf148 = empty_strided_cuda((12,), (1,), torch.float32)
        buf147 = buf146
        del buf146
        buf149 = empty_strided_cuda((1, 12, 1, 1), (12, 1, 12, 12), torch.
            float32)
        buf153 = empty_strided_cuda((4, 3, 64, 64), (12288, 4096, 64, 1),
            torch.float32)
        buf152 = empty_strided_cuda((1, 12, 1, 1), (12, 1, 12, 12), torch.
            float32)
        triton_red_fused__native_batch_norm_legit_convolution_repeat_sigmoid_23[
            grid(12)](buf147, primals_64, primals_63, primals_65, buf148,
            buf149, buf153, buf152, 12, 4096, XBLOCK=1, RBLOCK=2048,
            num_warps=16, num_stages=1)
        del primals_63
        del primals_64
        del primals_65
    return (buf153, primals_2, primals_6, primals_10, primals_14,
        primals_18, primals_22, primals_26, primals_30, primals_34,
        primals_38, primals_42, primals_46, primals_50, primals_54,
        primals_58, primals_62, buf0, buf2, buf3, buf4, buf5, buf8, buf9,
        buf11, buf12, buf13, buf14, buf17, buf18, buf20, buf21, buf22,
        buf23, buf26, buf27, buf29, buf30, buf31, buf32, buf35, buf37,
        buf39, buf40, buf41, buf42, buf45, buf46, buf48, buf49, buf50,
        buf51, buf54, buf56, buf58, buf59, buf60, buf61, buf64, buf65,
        buf67, buf68, buf69, buf70, buf73, buf75, buf77, buf78, buf79,
        buf80, buf83, buf84, buf86, buf87, buf88, buf89, buf92, buf94,
        buf96, buf97, buf98, buf99, buf102, buf103, buf105, buf106, buf107,
        buf108, buf111, buf113, buf115, buf116, buf117, buf118, buf121,
        buf122, buf123, buf125, buf127, buf128, buf129, buf130, buf133,
        buf134, buf135, buf136, buf138, buf139, buf140, buf141, buf144,
        buf145, buf147, buf148, reinterpret_tensor(buf152, (12,), (1,), 0),
        buf153, reinterpret_tensor(buf149, (1, 12, 1, 1), (12, 1, 1, 1), 0))


class GenericLayer(nn.Module):

    def __init__(self, layer, out_channels, padding=(0, 0, 0, 0),
        activation=None):
        super(GenericLayer, self).__init__()
        self._act = activation
        self._layer = layer
        self._norm = nn.InstanceNorm2d(out_channels, affine=True)
        self._pad = nn.ReflectionPad2d(padding)

    def forward(self, x):
        x = self._pad(x)
        x = self._layer(x)
        x = self._norm(x)
        if self._act is not None:
            x = self._act(x)
        return x


class ResidualBlock(nn.Module):

    def __init__(self, channels, kernel_size, stride, padding=(0, 0, 0, 0)):
        super(ResidualBlock, self).__init__()
        self._conv_1 = GenericLayer(nn.Conv2d(128, 128, 3, 1), 128, (1, 1, 
            1, 1), nn.ReLU())
        self._conv_2 = GenericLayer(nn.Conv2d(128, 128, 3, 1), 128, (1, 1, 
            1, 1), nn.ReLU())

    def forward(self, x):
        x = self._conv_1(x)
        x = x + self._conv_2(x)
        return x


class UpsampleConvLayer(nn.Module):

    def __init__(self, in_channels, out_channels, kernel_size, stride,
        scale_factor):
        super(UpsampleConvLayer, self).__init__()
        self._scale_factor = scale_factor
        self._reflection_pad = nn.ReflectionPad2d(kernel_size // 2)
        self._conv = nn.Conv2d(in_channels, out_channels, kernel_size, stride)

    def forward(self, x):
        x = nn.functional.interpolate(x, mode='nearest', scale_factor=self.
            _scale_factor)
        x = self._reflection_pad(x)
        x = self._conv(x)
        return x


class TransferNetNew(nn.Module):

    def __init__(self):
        super(TransferNetNew, self).__init__()
        self._conv_1 = GenericLayer(nn.Conv2d(3, 32, 9, 1), 32, (5, 5, 5, 5
            ), nn.ReLU())
        self._conv_2 = GenericLayer(nn.Conv2d(32, 64, 3, 2), 64, (1, 0, 1, 
            0), nn.ReLU())
        self._conv_3 = GenericLayer(nn.Conv2d(64, 128, 3, 2), 128, (1, 0, 1,
            0), nn.ReLU())
        self._res_1 = ResidualBlock(128, 3, 1, (1, 1, 1, 1))
        self._res_2 = ResidualBlock(128, 3, 1, (1, 1, 1, 1))
        self._res_3 = ResidualBlock(128, 3, 1, (1, 1, 1, 1))
        self._res_4 = ResidualBlock(128, 3, 1, (1, 1, 1, 1))
        self._res_5 = ResidualBlock(128, 3, 1, (1, 1, 1, 1))
        self._conv_4 = GenericLayer(UpsampleConvLayer(128, 64, 3, 1, 2), 64,
            (0, 0, 0, 0), nn.ReLU())
        self._conv_5 = GenericLayer(UpsampleConvLayer(64, 32, 3, 1, 2), 32,
            (0, 0, 0, 0), nn.ReLU())
        self._conv_6 = GenericLayer(nn.Conv2d(32, 3, 9, 1), 3, (4, 4, 4, 4),
            nn.Sigmoid())

    def forward(self, input_0):
        primals_2 = self._conv_1._layer.weight
        primals_3 = self._conv_1._layer.bias
        primals_4 = self._conv_1._norm.weight
        primals_5 = self._conv_1._norm.bias
        primals_6 = self._conv_2._layer.weight
        primals_7 = self._conv_2._layer.bias
        primals_8 = self._conv_2._norm.weight
        primals_9 = self._conv_2._norm.bias
        primals_10 = self._conv_3._layer.weight
        primals_11 = self._conv_3._layer.bias
        primals_12 = self._conv_3._norm.weight
        primals_13 = self._conv_3._norm.bias
        primals_14 = self._res_1._conv_1._layer.weight
        primals_15 = self._res_1._conv_1._layer.bias
        primals_16 = self._res_1._conv_1._norm.weight
        primals_17 = self._res_1._conv_1._norm.bias
        primals_18 = self._res_1._conv_2._layer.weight
        primals_19 = self._res_1._conv_2._layer.bias
        primals_20 = self._res_1._conv_2._norm.weight
        primals_21 = self._res_1._conv_2._norm.bias
        primals_22 = self._res_2._conv_1._layer.weight
        primals_23 = self._res_2._conv_1._layer.bias
        primals_24 = self._res_2._conv_1._norm.weight
        primals_25 = self._res_2._conv_1._norm.bias
        primals_26 = self._res_2._conv_2._layer.weight
        primals_27 = self._res_2._conv_2._layer.bias
        primals_28 = self._res_2._conv_2._norm.weight
        primals_29 = self._res_2._conv_2._norm.bias
        primals_30 = self._res_3._conv_1._layer.weight
        primals_31 = self._res_3._conv_1._layer.bias
        primals_32 = self._res_3._conv_1._norm.weight
        primals_33 = self._res_3._conv_1._norm.bias
        primals_34 = self._res_3._conv_2._layer.weight
        primals_35 = self._res_3._conv_2._layer.bias
        primals_36 = self._res_3._conv_2._norm.weight
        primals_37 = self._res_3._conv_2._norm.bias
        primals_38 = self._res_4._conv_1._layer.weight
        primals_39 = self._res_4._conv_1._layer.bias
        primals_40 = self._res_4._conv_1._norm.weight
        primals_41 = self._res_4._conv_1._norm.bias
        primals_42 = self._res_4._conv_2._layer.weight
        primals_43 = self._res_4._conv_2._layer.bias
        primals_44 = self._res_4._conv_2._norm.weight
        primals_45 = self._res_4._conv_2._norm.bias
        primals_46 = self._res_5._conv_1._layer.weight
        primals_47 = self._res_5._conv_1._layer.bias
        primals_48 = self._res_5._conv_1._norm.weight
        primals_49 = self._res_5._conv_1._norm.bias
        primals_50 = self._res_5._conv_2._layer.weight
        primals_51 = self._res_5._conv_2._layer.bias
        primals_52 = self._res_5._conv_2._norm.weight
        primals_53 = self._res_5._conv_2._norm.bias
        primals_54 = self._conv_4._layer._conv.weight
        primals_55 = self._conv_4._layer._conv.bias
        primals_56 = self._conv_4._norm.weight
        primals_57 = self._conv_4._norm.bias
        primals_58 = self._conv_5._layer._conv.weight
        primals_59 = self._conv_5._layer._conv.bias
        primals_60 = self._conv_5._norm.weight
        primals_61 = self._conv_5._norm.bias
        primals_62 = self._conv_6._layer.weight
        primals_63 = self._conv_6._layer.bias
        primals_64 = self._conv_6._norm.weight
        primals_65 = self._conv_6._norm.bias
        primals_1 = input_0
        output = call([primals_1, primals_2, primals_3, primals_4,
            primals_5, primals_6, primals_7, primals_8, primals_9,
            primals_10, primals_11, primals_12, primals_13, primals_14,
            primals_15, primals_16, primals_17, primals_18, primals_19,
            primals_20, primals_21, primals_22, primals_23, primals_24,
            primals_25, primals_26, primals_27, primals_28, primals_29,
            primals_30, primals_31, primals_32, primals_33, primals_34,
            primals_35, primals_36, primals_37, primals_38, primals_39,
            primals_40, primals_41, primals_42, primals_43, primals_44,
            primals_45, primals_46, primals_47, primals_48, primals_49,
            primals_50, primals_51, primals_52, primals_53, primals_54,
            primals_55, primals_56, primals_57, primals_58, primals_59,
            primals_60, primals_61, primals_62, primals_63, primals_64,
            primals_65])
        return output[0]


Measured latency_ms: 1.156851