# AOT ID: ['0_inference']
from ctypes import c_void_p, c_long, c_int
import torch
import math
import random
import os
import tempfile
from math import inf, nan
from torch._inductor.hooks import run_intermediate_hooks
from torch._inductor.utils import maybe_profile
from torch._inductor.codegen.memory_planning import _align as align
from torch import device, empty_strided
from torch._inductor.async_compile import AsyncCompile
from torch._inductor.select_algorithm import extern_kernels
from torch._inductor.codegen.multi_kernel import MultiKernelCall
import triton
import triton.language as tl
from torch._inductor.runtime.triton_heuristics import grid, split_scan_grid, grid_combo_kernels, start_graph, end_graph
from torch._C import _cuda_getCurrentRawStream as get_raw_stream

aten = torch.ops.aten
inductor_ops = torch.ops.inductor
_quantized = torch.ops._quantized
assert_size_stride = torch._C._dynamo.guards.assert_size_stride
empty_strided_cpu = torch._C._dynamo.guards._empty_strided_cpu
empty_strided_cuda = torch._C._dynamo.guards._empty_strided_cuda
empty_strided_xpu = torch._C._dynamo.guards._empty_strided_xpu
reinterpret_tensor = torch._C._dynamo.guards._reinterpret_tensor
alloc_from_pool = torch.ops.inductor._alloc_from_pool
async_compile = AsyncCompile()


# kernel path: runs/run_shard_4/inductor_cache/bk/cbkxsp72qxe4rkxwcicmzvtskfizpwnd56mg5cfatr7zr2p42ofj.py
# Topologically Sorted Source Nodes: [mul_1, res, out, out_1], Original ATen: [aten.mul, aten.add, aten.clamp]
# Source node to ATen node mapping:
#   mul_1 => mul_1
#   out => add
#   out_1 => clamp_max, clamp_min
#   res => mul
# Graph fragment:
#   %mul_1 : [num_users=1] = call_function[target=torch.ops.aten.mul.Tensor](args = (%view_2, 0.5), kwargs = {})
#   %mul : [num_users=50] = call_function[target=torch.ops.aten.mul.Tensor](args = (%arg0_1, 0.5), kwargs = {})
#   %add : [num_users=1] = call_function[target=torch.ops.aten.add.Tensor](args = (%mul_1, %mul), kwargs = {})
#   %clamp_min : [num_users=1] = call_function[target=torch.ops.aten.clamp_min.default](args = (%add, 0), kwargs = {})
#   %clamp_max : [num_users=1] = call_function[target=torch.ops.aten.clamp_max.default](args = (%clamp_min, 1), kwargs = {})
triton_poi_fused_add_clamp_mul_0 = async_compile.triton('triton_poi_fused_add_clamp_mul_0', '''
import triton
import triton.language as tl
from triton.compiler.compiler import AttrsDescriptor

from torch._inductor.runtime import triton_helpers, triton_heuristics
from torch._inductor.runtime.triton_helpers import libdevice, math as tl_math
from torch._inductor.runtime.hints import AutotuneHint, ReductionHint, TileHint, instance_descriptor, DeviceProperties

@triton_heuristics.pointwise(
    size_hints=[256], 
    filename=__file__,
    triton_meta={'signature': {0: '*fp32', 1: '*fp32', 2: 'i32'}, 'device': DeviceProperties(type='cuda', index=0, cc=80, major=8, regs_per_multiprocessor=65536, max_threads_per_multi_processor=2048, multi_processor_count=108), 'constants': {}, 'configs': [AttrsDescriptor(divisible_by_16=(0, 1, 2), equal_to_1=())]},
    inductor_meta={'autotune_hints': set(), 'kernel_name': 'triton_poi_fused_add_clamp_mul_0', 'mutated_arg_names': ['in_out_ptr0'], 'no_x_dim': False, 'num_load': 2, 'num_reduction': 0, 'backend_hash': 'A9C866B4A14FD3277824029365D703C2427B2E685E54EC9B3EF4ADC8D1EEAC1D', 'are_deterministic_algorithms_enabled': False, 'assert_indirect_indexing': True, 'autotune_local_cache': True, 'autotune_pointwise': True, 'autotune_remote_cache': None, 'force_disable_caches': False, 'dynamic_scale_rblock': True, 'max_autotune': False, 'max_autotune_pointwise': False, 'min_split_scan_rblock': 256, 'spill_threshold': 16, 'store_cubin': False},
    min_elem_per_thread=0
)
@triton.jit
def triton_poi_fused_add_clamp_mul_0(in_out_ptr0, in_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_out_ptr0 + (x0), xmask)
    tmp3 = tl.load(in_ptr0 + (x0), xmask)
    tmp1 = 0.5
    tmp2 = tmp0 * tmp1
    tmp4 = tmp3 * tmp1
    tmp5 = tmp2 + tmp4
    tmp6 = 0.0
    tmp7 = triton_helpers.maximum(tmp5, tmp6)
    tmp8 = 1.0
    tmp9 = triton_helpers.minimum(tmp7, tmp8)
    tl.store(in_out_ptr0 + (x0), tmp9, xmask)
''', device_str='cuda')


async_compile.wait(globals())
del async_compile

def call(args):
    arg0_1, arg1_1 = args
    args.clear()
    assert_size_stride(arg0_1, (4, 4, 4, 4), (64, 16, 4, 1))
    assert_size_stride(arg1_1, (4, 4, 4, 4), (64, 16, 4, 1))
    with torch.cuda._DeviceGuard(0):
        torch.cuda.set_device(0)
        buf0 = empty_strided_cuda((16, 4, 4), (16, 4, 1), torch.float32)
        # Topologically Sorted Source Nodes: [matmul], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(arg0_1, (16, 4, 4), (16, 4, 1), 0), out=buf0)
        buf1 = reinterpret_tensor(buf0, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf0  # reuse
        # Topologically Sorted Source Nodes: [mul_1, res, out, out_1], Original ATen: [aten.mul, aten.add, aten.clamp]
        stream0 = get_raw_stream(0)
        triton_poi_fused_add_clamp_mul_0.run(buf1, arg0_1, 256, grid=grid(256), stream=stream0)
        buf2 = empty_strided_cuda((16, 4, 4), (16, 4, 1), torch.float32)
        # Topologically Sorted Source Nodes: [matmul_1], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf1, (16, 4, 4), (16, 4, 1), 0), out=buf2)
        buf3 = reinterpret_tensor(buf2, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf2  # reuse
        # Topologically Sorted Source Nodes: [res, mul_2, out_2, out_3], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf3, arg0_1, 256, grid=grid(256), stream=stream0)
        buf4 = reinterpret_tensor(buf1, (16, 4, 4), (16, 4, 1), 0); del buf1  # reuse
        # Topologically Sorted Source Nodes: [matmul_2], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf3, (16, 4, 4), (16, 4, 1), 0), out=buf4)
        buf5 = reinterpret_tensor(buf4, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf4  # reuse
        # Topologically Sorted Source Nodes: [res, mul_3, out_4, out_5], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf5, arg0_1, 256, grid=grid(256), stream=stream0)
        buf6 = reinterpret_tensor(buf3, (16, 4, 4), (16, 4, 1), 0); del buf3  # reuse
        # Topologically Sorted Source Nodes: [matmul_3], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf5, (16, 4, 4), (16, 4, 1), 0), out=buf6)
        buf7 = reinterpret_tensor(buf6, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf6  # reuse
        # Topologically Sorted Source Nodes: [res, mul_4, out_6, out_7], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf7, arg0_1, 256, grid=grid(256), stream=stream0)
        buf8 = reinterpret_tensor(buf5, (16, 4, 4), (16, 4, 1), 0); del buf5  # reuse
        # Topologically Sorted Source Nodes: [matmul_4], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf7, (16, 4, 4), (16, 4, 1), 0), out=buf8)
        buf9 = reinterpret_tensor(buf8, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf8  # reuse
        # Topologically Sorted Source Nodes: [res, mul_5, out_8, out_9], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf9, arg0_1, 256, grid=grid(256), stream=stream0)
        buf10 = reinterpret_tensor(buf7, (16, 4, 4), (16, 4, 1), 0); del buf7  # reuse
        # Topologically Sorted Source Nodes: [matmul_5], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf9, (16, 4, 4), (16, 4, 1), 0), out=buf10)
        buf11 = reinterpret_tensor(buf10, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf10  # reuse
        # Topologically Sorted Source Nodes: [res, mul_6, out_10, out_11], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf11, arg0_1, 256, grid=grid(256), stream=stream0)
        buf12 = reinterpret_tensor(buf9, (16, 4, 4), (16, 4, 1), 0); del buf9  # reuse
        # Topologically Sorted Source Nodes: [matmul_6], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf11, (16, 4, 4), (16, 4, 1), 0), out=buf12)
        buf13 = reinterpret_tensor(buf12, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf12  # reuse
        # Topologically Sorted Source Nodes: [res, mul_7, out_12, out_13], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf13, arg0_1, 256, grid=grid(256), stream=stream0)
        buf14 = reinterpret_tensor(buf11, (16, 4, 4), (16, 4, 1), 0); del buf11  # reuse
        # Topologically Sorted Source Nodes: [matmul_7], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf13, (16, 4, 4), (16, 4, 1), 0), out=buf14)
        buf15 = reinterpret_tensor(buf14, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf14  # reuse
        # Topologically Sorted Source Nodes: [res, mul_8, out_14, out_15], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf15, arg0_1, 256, grid=grid(256), stream=stream0)
        buf16 = reinterpret_tensor(buf13, (16, 4, 4), (16, 4, 1), 0); del buf13  # reuse
        # Topologically Sorted Source Nodes: [matmul_8], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf15, (16, 4, 4), (16, 4, 1), 0), out=buf16)
        buf17 = reinterpret_tensor(buf16, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf16  # reuse
        # Topologically Sorted Source Nodes: [res, mul_9, out_16, out_17], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf17, arg0_1, 256, grid=grid(256), stream=stream0)
        buf18 = reinterpret_tensor(buf15, (16, 4, 4), (16, 4, 1), 0); del buf15  # reuse
        # Topologically Sorted Source Nodes: [matmul_9], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf17, (16, 4, 4), (16, 4, 1), 0), out=buf18)
        buf19 = reinterpret_tensor(buf18, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf18  # reuse
        # Topologically Sorted Source Nodes: [res, mul_10, out_18, out_19], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf19, arg0_1, 256, grid=grid(256), stream=stream0)
        buf20 = reinterpret_tensor(buf17, (16, 4, 4), (16, 4, 1), 0); del buf17  # reuse
        # Topologically Sorted Source Nodes: [matmul_10], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf19, (16, 4, 4), (16, 4, 1), 0), out=buf20)
        buf21 = reinterpret_tensor(buf20, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf20  # reuse
        # Topologically Sorted Source Nodes: [res, mul_11, out_20, out_21], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf21, arg0_1, 256, grid=grid(256), stream=stream0)
        buf22 = reinterpret_tensor(buf19, (16, 4, 4), (16, 4, 1), 0); del buf19  # reuse
        # Topologically Sorted Source Nodes: [matmul_11], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf21, (16, 4, 4), (16, 4, 1), 0), out=buf22)
        buf23 = reinterpret_tensor(buf22, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf22  # reuse
        # Topologically Sorted Source Nodes: [res, mul_12, out_22, out_23], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf23, arg0_1, 256, grid=grid(256), stream=stream0)
        buf24 = reinterpret_tensor(buf21, (16, 4, 4), (16, 4, 1), 0); del buf21  # reuse
        # Topologically Sorted Source Nodes: [matmul_12], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf23, (16, 4, 4), (16, 4, 1), 0), out=buf24)
        buf25 = reinterpret_tensor(buf24, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf24  # reuse
        # Topologically Sorted Source Nodes: [res, mul_13, out_24, out_25], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf25, arg0_1, 256, grid=grid(256), stream=stream0)
        buf26 = reinterpret_tensor(buf23, (16, 4, 4), (16, 4, 1), 0); del buf23  # reuse
        # Topologically Sorted Source Nodes: [matmul_13], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf25, (16, 4, 4), (16, 4, 1), 0), out=buf26)
        buf27 = reinterpret_tensor(buf26, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf26  # reuse
        # Topologically Sorted Source Nodes: [res, mul_14, out_26, out_27], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf27, arg0_1, 256, grid=grid(256), stream=stream0)
        buf28 = reinterpret_tensor(buf25, (16, 4, 4), (16, 4, 1), 0); del buf25  # reuse
        # Topologically Sorted Source Nodes: [matmul_14], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf27, (16, 4, 4), (16, 4, 1), 0), out=buf28)
        buf29 = reinterpret_tensor(buf28, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf28  # reuse
        # Topologically Sorted Source Nodes: [res, mul_15, out_28, out_29], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf29, arg0_1, 256, grid=grid(256), stream=stream0)
        buf30 = reinterpret_tensor(buf27, (16, 4, 4), (16, 4, 1), 0); del buf27  # reuse
        # Topologically Sorted Source Nodes: [matmul_15], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf29, (16, 4, 4), (16, 4, 1), 0), out=buf30)
        buf31 = reinterpret_tensor(buf30, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf30  # reuse
        # Topologically Sorted Source Nodes: [res, mul_16, out_30, out_31], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf31, arg0_1, 256, grid=grid(256), stream=stream0)
        buf32 = reinterpret_tensor(buf29, (16, 4, 4), (16, 4, 1), 0); del buf29  # reuse
        # Topologically Sorted Source Nodes: [matmul_16], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf31, (16, 4, 4), (16, 4, 1), 0), out=buf32)
        buf33 = reinterpret_tensor(buf32, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf32  # reuse
        # Topologically Sorted Source Nodes: [res, mul_17, out_32, out_33], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf33, arg0_1, 256, grid=grid(256), stream=stream0)
        buf34 = reinterpret_tensor(buf31, (16, 4, 4), (16, 4, 1), 0); del buf31  # reuse
        # Topologically Sorted Source Nodes: [matmul_17], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf33, (16, 4, 4), (16, 4, 1), 0), out=buf34)
        buf35 = reinterpret_tensor(buf34, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf34  # reuse
        # Topologically Sorted Source Nodes: [res, mul_18, out_34, out_35], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf35, arg0_1, 256, grid=grid(256), stream=stream0)
        buf36 = reinterpret_tensor(buf33, (16, 4, 4), (16, 4, 1), 0); del buf33  # reuse
        # Topologically Sorted Source Nodes: [matmul_18], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf35, (16, 4, 4), (16, 4, 1), 0), out=buf36)
        buf37 = reinterpret_tensor(buf36, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf36  # reuse
        # Topologically Sorted Source Nodes: [res, mul_19, out_36, out_37], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf37, arg0_1, 256, grid=grid(256), stream=stream0)
        buf38 = reinterpret_tensor(buf35, (16, 4, 4), (16, 4, 1), 0); del buf35  # reuse
        # Topologically Sorted Source Nodes: [matmul_19], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf37, (16, 4, 4), (16, 4, 1), 0), out=buf38)
        buf39 = reinterpret_tensor(buf38, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf38  # reuse
        # Topologically Sorted Source Nodes: [res, mul_20, out_38, out_39], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf39, arg0_1, 256, grid=grid(256), stream=stream0)
        buf40 = reinterpret_tensor(buf37, (16, 4, 4), (16, 4, 1), 0); del buf37  # reuse
        # Topologically Sorted Source Nodes: [matmul_20], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf39, (16, 4, 4), (16, 4, 1), 0), out=buf40)
        buf41 = reinterpret_tensor(buf40, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf40  # reuse
        # Topologically Sorted Source Nodes: [res, mul_21, out_40, out_41], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf41, arg0_1, 256, grid=grid(256), stream=stream0)
        buf42 = reinterpret_tensor(buf39, (16, 4, 4), (16, 4, 1), 0); del buf39  # reuse
        # Topologically Sorted Source Nodes: [matmul_21], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf41, (16, 4, 4), (16, 4, 1), 0), out=buf42)
        buf43 = reinterpret_tensor(buf42, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf42  # reuse
        # Topologically Sorted Source Nodes: [res, mul_22, out_42, out_43], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf43, arg0_1, 256, grid=grid(256), stream=stream0)
        buf44 = reinterpret_tensor(buf41, (16, 4, 4), (16, 4, 1), 0); del buf41  # reuse
        # Topologically Sorted Source Nodes: [matmul_22], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf43, (16, 4, 4), (16, 4, 1), 0), out=buf44)
        buf45 = reinterpret_tensor(buf44, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf44  # reuse
        # Topologically Sorted Source Nodes: [res, mul_23, out_44, out_45], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf45, arg0_1, 256, grid=grid(256), stream=stream0)
        buf46 = reinterpret_tensor(buf43, (16, 4, 4), (16, 4, 1), 0); del buf43  # reuse
        # Topologically Sorted Source Nodes: [matmul_23], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf45, (16, 4, 4), (16, 4, 1), 0), out=buf46)
        buf47 = reinterpret_tensor(buf46, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf46  # reuse
        # Topologically Sorted Source Nodes: [res, mul_24, out_46, out_47], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf47, arg0_1, 256, grid=grid(256), stream=stream0)
        buf48 = reinterpret_tensor(buf45, (16, 4, 4), (16, 4, 1), 0); del buf45  # reuse
        # Topologically Sorted Source Nodes: [matmul_24], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf47, (16, 4, 4), (16, 4, 1), 0), out=buf48)
        buf49 = reinterpret_tensor(buf48, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf48  # reuse
        # Topologically Sorted Source Nodes: [res, mul_25, out_48, out_49], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf49, arg0_1, 256, grid=grid(256), stream=stream0)
        buf50 = reinterpret_tensor(buf47, (16, 4, 4), (16, 4, 1), 0); del buf47  # reuse
        # Topologically Sorted Source Nodes: [matmul_25], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf49, (16, 4, 4), (16, 4, 1), 0), out=buf50)
        buf51 = reinterpret_tensor(buf50, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf50  # reuse
        # Topologically Sorted Source Nodes: [res, mul_26, out_50, out_51], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf51, arg0_1, 256, grid=grid(256), stream=stream0)
        buf52 = reinterpret_tensor(buf49, (16, 4, 4), (16, 4, 1), 0); del buf49  # reuse
        # Topologically Sorted Source Nodes: [matmul_26], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf51, (16, 4, 4), (16, 4, 1), 0), out=buf52)
        buf53 = reinterpret_tensor(buf52, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf52  # reuse
        # Topologically Sorted Source Nodes: [res, mul_27, out_52, out_53], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf53, arg0_1, 256, grid=grid(256), stream=stream0)
        buf54 = reinterpret_tensor(buf51, (16, 4, 4), (16, 4, 1), 0); del buf51  # reuse
        # Topologically Sorted Source Nodes: [matmul_27], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf53, (16, 4, 4), (16, 4, 1), 0), out=buf54)
        buf55 = reinterpret_tensor(buf54, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf54  # reuse
        # Topologically Sorted Source Nodes: [res, mul_28, out_54, out_55], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf55, arg0_1, 256, grid=grid(256), stream=stream0)
        buf56 = reinterpret_tensor(buf53, (16, 4, 4), (16, 4, 1), 0); del buf53  # reuse
        # Topologically Sorted Source Nodes: [matmul_28], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf55, (16, 4, 4), (16, 4, 1), 0), out=buf56)
        buf57 = reinterpret_tensor(buf56, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf56  # reuse
        # Topologically Sorted Source Nodes: [res, mul_29, out_56, out_57], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf57, arg0_1, 256, grid=grid(256), stream=stream0)
        buf58 = reinterpret_tensor(buf55, (16, 4, 4), (16, 4, 1), 0); del buf55  # reuse
        # Topologically Sorted Source Nodes: [matmul_29], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf57, (16, 4, 4), (16, 4, 1), 0), out=buf58)
        buf59 = reinterpret_tensor(buf58, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf58  # reuse
        # Topologically Sorted Source Nodes: [res, mul_30, out_58, out_59], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf59, arg0_1, 256, grid=grid(256), stream=stream0)
        buf60 = reinterpret_tensor(buf57, (16, 4, 4), (16, 4, 1), 0); del buf57  # reuse
        # Topologically Sorted Source Nodes: [matmul_30], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf59, (16, 4, 4), (16, 4, 1), 0), out=buf60)
        buf61 = reinterpret_tensor(buf60, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf60  # reuse
        # Topologically Sorted Source Nodes: [res, mul_31, out_60, out_61], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf61, arg0_1, 256, grid=grid(256), stream=stream0)
        buf62 = reinterpret_tensor(buf59, (16, 4, 4), (16, 4, 1), 0); del buf59  # reuse
        # Topologically Sorted Source Nodes: [matmul_31], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf61, (16, 4, 4), (16, 4, 1), 0), out=buf62)
        buf63 = reinterpret_tensor(buf62, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf62  # reuse
        # Topologically Sorted Source Nodes: [res, mul_32, out_62, out_63], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf63, arg0_1, 256, grid=grid(256), stream=stream0)
        buf64 = reinterpret_tensor(buf61, (16, 4, 4), (16, 4, 1), 0); del buf61  # reuse
        # Topologically Sorted Source Nodes: [matmul_32], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf63, (16, 4, 4), (16, 4, 1), 0), out=buf64)
        buf65 = reinterpret_tensor(buf64, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf64  # reuse
        # Topologically Sorted Source Nodes: [res, mul_33, out_64, out_65], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf65, arg0_1, 256, grid=grid(256), stream=stream0)
        buf66 = reinterpret_tensor(buf63, (16, 4, 4), (16, 4, 1), 0); del buf63  # reuse
        # Topologically Sorted Source Nodes: [matmul_33], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf65, (16, 4, 4), (16, 4, 1), 0), out=buf66)
        buf67 = reinterpret_tensor(buf66, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf66  # reuse
        # Topologically Sorted Source Nodes: [res, mul_34, out_66, out_67], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf67, arg0_1, 256, grid=grid(256), stream=stream0)
        buf68 = reinterpret_tensor(buf65, (16, 4, 4), (16, 4, 1), 0); del buf65  # reuse
        # Topologically Sorted Source Nodes: [matmul_34], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf67, (16, 4, 4), (16, 4, 1), 0), out=buf68)
        buf69 = reinterpret_tensor(buf68, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf68  # reuse
        # Topologically Sorted Source Nodes: [res, mul_35, out_68, out_69], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf69, arg0_1, 256, grid=grid(256), stream=stream0)
        buf70 = reinterpret_tensor(buf67, (16, 4, 4), (16, 4, 1), 0); del buf67  # reuse
        # Topologically Sorted Source Nodes: [matmul_35], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf69, (16, 4, 4), (16, 4, 1), 0), out=buf70)
        buf71 = reinterpret_tensor(buf70, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf70  # reuse
        # Topologically Sorted Source Nodes: [res, mul_36, out_70, out_71], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf71, arg0_1, 256, grid=grid(256), stream=stream0)
        buf72 = reinterpret_tensor(buf69, (16, 4, 4), (16, 4, 1), 0); del buf69  # reuse
        # Topologically Sorted Source Nodes: [matmul_36], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf71, (16, 4, 4), (16, 4, 1), 0), out=buf72)
        buf73 = reinterpret_tensor(buf72, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf72  # reuse
        # Topologically Sorted Source Nodes: [res, mul_37, out_72, out_73], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf73, arg0_1, 256, grid=grid(256), stream=stream0)
        buf74 = reinterpret_tensor(buf71, (16, 4, 4), (16, 4, 1), 0); del buf71  # reuse
        # Topologically Sorted Source Nodes: [matmul_37], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf73, (16, 4, 4), (16, 4, 1), 0), out=buf74)
        buf75 = reinterpret_tensor(buf74, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf74  # reuse
        # Topologically Sorted Source Nodes: [res, mul_38, out_74, out_75], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf75, arg0_1, 256, grid=grid(256), stream=stream0)
        buf76 = reinterpret_tensor(buf73, (16, 4, 4), (16, 4, 1), 0); del buf73  # reuse
        # Topologically Sorted Source Nodes: [matmul_38], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf75, (16, 4, 4), (16, 4, 1), 0), out=buf76)
        buf77 = reinterpret_tensor(buf76, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf76  # reuse
        # Topologically Sorted Source Nodes: [res, mul_39, out_76, out_77], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf77, arg0_1, 256, grid=grid(256), stream=stream0)
        buf78 = reinterpret_tensor(buf75, (16, 4, 4), (16, 4, 1), 0); del buf75  # reuse
        # Topologically Sorted Source Nodes: [matmul_39], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf77, (16, 4, 4), (16, 4, 1), 0), out=buf78)
        buf79 = reinterpret_tensor(buf78, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf78  # reuse
        # Topologically Sorted Source Nodes: [res, mul_40, out_78, out_79], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf79, arg0_1, 256, grid=grid(256), stream=stream0)
        buf80 = reinterpret_tensor(buf77, (16, 4, 4), (16, 4, 1), 0); del buf77  # reuse
        # Topologically Sorted Source Nodes: [matmul_40], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf79, (16, 4, 4), (16, 4, 1), 0), out=buf80)
        buf81 = reinterpret_tensor(buf80, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf80  # reuse
        # Topologically Sorted Source Nodes: [res, mul_41, out_80, out_81], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf81, arg0_1, 256, grid=grid(256), stream=stream0)
        buf82 = reinterpret_tensor(buf79, (16, 4, 4), (16, 4, 1), 0); del buf79  # reuse
        # Topologically Sorted Source Nodes: [matmul_41], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf81, (16, 4, 4), (16, 4, 1), 0), out=buf82)
        buf83 = reinterpret_tensor(buf82, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf82  # reuse
        # Topologically Sorted Source Nodes: [res, mul_42, out_82, out_83], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf83, arg0_1, 256, grid=grid(256), stream=stream0)
        buf84 = reinterpret_tensor(buf81, (16, 4, 4), (16, 4, 1), 0); del buf81  # reuse
        # Topologically Sorted Source Nodes: [matmul_42], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf83, (16, 4, 4), (16, 4, 1), 0), out=buf84)
        buf85 = reinterpret_tensor(buf84, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf84  # reuse
        # Topologically Sorted Source Nodes: [res, mul_43, out_84, out_85], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf85, arg0_1, 256, grid=grid(256), stream=stream0)
        buf86 = reinterpret_tensor(buf83, (16, 4, 4), (16, 4, 1), 0); del buf83  # reuse
        # Topologically Sorted Source Nodes: [matmul_43], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf85, (16, 4, 4), (16, 4, 1), 0), out=buf86)
        buf87 = reinterpret_tensor(buf86, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf86  # reuse
        # Topologically Sorted Source Nodes: [res, mul_44, out_86, out_87], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf87, arg0_1, 256, grid=grid(256), stream=stream0)
        buf88 = reinterpret_tensor(buf85, (16, 4, 4), (16, 4, 1), 0); del buf85  # reuse
        # Topologically Sorted Source Nodes: [matmul_44], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf87, (16, 4, 4), (16, 4, 1), 0), out=buf88)
        buf89 = reinterpret_tensor(buf88, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf88  # reuse
        # Topologically Sorted Source Nodes: [res, mul_45, out_88, out_89], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf89, arg0_1, 256, grid=grid(256), stream=stream0)
        buf90 = reinterpret_tensor(buf87, (16, 4, 4), (16, 4, 1), 0); del buf87  # reuse
        # Topologically Sorted Source Nodes: [matmul_45], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf89, (16, 4, 4), (16, 4, 1), 0), out=buf90)
        buf91 = reinterpret_tensor(buf90, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf90  # reuse
        # Topologically Sorted Source Nodes: [res, mul_46, out_90, out_91], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf91, arg0_1, 256, grid=grid(256), stream=stream0)
        buf92 = reinterpret_tensor(buf89, (16, 4, 4), (16, 4, 1), 0); del buf89  # reuse
        # Topologically Sorted Source Nodes: [matmul_46], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf91, (16, 4, 4), (16, 4, 1), 0), out=buf92)
        buf93 = reinterpret_tensor(buf92, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf92  # reuse
        # Topologically Sorted Source Nodes: [res, mul_47, out_92, out_93], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf93, arg0_1, 256, grid=grid(256), stream=stream0)
        buf94 = reinterpret_tensor(buf91, (16, 4, 4), (16, 4, 1), 0); del buf91  # reuse
        # Topologically Sorted Source Nodes: [matmul_47], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf93, (16, 4, 4), (16, 4, 1), 0), out=buf94)
        buf95 = reinterpret_tensor(buf94, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf94  # reuse
        # Topologically Sorted Source Nodes: [res, mul_48, out_94, out_95], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf95, arg0_1, 256, grid=grid(256), stream=stream0)
        buf96 = reinterpret_tensor(buf93, (16, 4, 4), (16, 4, 1), 0); del buf93  # reuse
        # Topologically Sorted Source Nodes: [matmul_48], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf95, (16, 4, 4), (16, 4, 1), 0), out=buf96)
        buf97 = reinterpret_tensor(buf96, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf96  # reuse
        # Topologically Sorted Source Nodes: [res, mul_49, out_96, out_97], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf97, arg0_1, 256, grid=grid(256), stream=stream0)
        buf98 = reinterpret_tensor(buf95, (16, 4, 4), (16, 4, 1), 0); del buf95  # reuse
        # Topologically Sorted Source Nodes: [matmul_49], Original ATen: [aten.bmm]
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1), 0), reinterpret_tensor(buf97, (16, 4, 4), (16, 4, 1), 0), out=buf98)
        del arg1_1
        del buf97
        buf99 = reinterpret_tensor(buf98, (4, 4, 4, 4), (64, 16, 4, 1), 0); del buf98  # reuse
        # Topologically Sorted Source Nodes: [res, mul_50, out_98, out_99], Original ATen: [aten.mul, aten.add, aten.clamp]
        triton_poi_fused_add_clamp_mul_0.run(buf99, arg0_1, 256, grid=grid(256), stream=stream0)
        del arg0_1
    return (buf99, )


def benchmark_compiled_module(times=10, repeat=10):
    from torch._dynamo.testing import rand_strided
    from torch._inductor.utils import print_performance
    arg0_1 = rand_strided((4, 4, 4, 4), (64, 16, 4, 1), device='cuda:0', dtype=torch.float32)
    arg1_1 = rand_strided((4, 4, 4, 4), (64, 16, 4, 1), device='cuda:0', dtype=torch.float32)
    fn = lambda: call([arg0_1, arg1_1])
    return print_performance(fn, times=times, repeat=repeat)


if __name__ == "__main__":
    from torch._inductor.wrapper_benchmark import compiled_module_main
    compiled_module_main('None', benchmark_compiled_module)

import torch
import torch.nn.functional as F
import torch.nn as nn


class LabelPropagation(nn.Module):
    """label propagation model adapted from https://github.com/CUAI/CorrectAndSmooth
    `"Learning from Labeled and
    Unlabeled Datawith Label Propagation"
    <http://mlg.eng.cam.ac.uk/zoubin/papers/CMU-CALD-02-107.pdf>`_ paper

    """

    def __init__(self, num_layers=50, alpha=0.5, residual=True):
        super().__init__()
        self.num_layers = num_layers
        self.alpha = alpha
        self.residual = residual

    @torch.no_grad()
    def forward(self, y, adj, mask=None):
        if y.dtype == torch.long:
            y = F.one_hot(y.view(-1)).float()
        out = y
        if mask is not None:
            out = torch.zeros_like(y)
            out[mask] = y[mask]
        if self.residual:
            res = (1 - self.alpha) * out
        else:
            res = out.clone()
        for _ in range(self.num_layers):
            out = self.alpha * (adj @ out) + res
            out = torch.clamp(out, 0, 1)
        return out


def get_inputs():
    return [torch.rand([4, 4, 4, 4]), torch.rand([4, 4, 4, 4])]


def get_init_inputs():
    return [[], {}]

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
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_add_clamp_mul_0(in_out_ptr0, in_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_out_ptr0 + x0, xmask)
    tmp3 = tl.load(in_ptr0 + x0, xmask)
    tmp1 = 0.5
    tmp2 = tmp0 * tmp1
    tmp4 = tmp3 * tmp1
    tmp5 = tmp2 + tmp4
    tmp6 = 0.0
    tmp7 = triton_helpers.maximum(tmp5, tmp6)
    tmp8 = 1.0
    tmp9 = triton_helpers.minimum(tmp7, tmp8)
    tl.store(in_out_ptr0 + x0, tmp9, xmask)


def call(args):
    arg0_1, arg1_1 = args
    args.clear()
    assert_size_stride(arg0_1, (4, 4, 4, 4), (64, 16, 4, 1))
    assert_size_stride(arg1_1, (4, 4, 4, 4), (64, 16, 4, 1))
    with torch.cuda._DeviceGuard(0):
        torch.cuda.set_device(0)
        buf0 = empty_strided_cuda((16, 4, 4), (16, 4, 1), torch.float32)
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(arg0_1, (16, 4, 4), (16, 4, 1), 0),
            out=buf0)
        buf1 = reinterpret_tensor(buf0, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf0
        get_raw_stream(0)
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf1, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf2 = empty_strided_cuda((16, 4, 4), (16, 4, 1), torch.float32)
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf1, (16, 4, 4), (16, 4, 1), 0), out
            =buf2)
        buf3 = reinterpret_tensor(buf2, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf2
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf3, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf4 = reinterpret_tensor(buf1, (16, 4, 4), (16, 4, 1), 0)
        del buf1
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf3, (16, 4, 4), (16, 4, 1), 0), out
            =buf4)
        buf5 = reinterpret_tensor(buf4, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf4
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf5, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf6 = reinterpret_tensor(buf3, (16, 4, 4), (16, 4, 1), 0)
        del buf3
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf5, (16, 4, 4), (16, 4, 1), 0), out
            =buf6)
        buf7 = reinterpret_tensor(buf6, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf6
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf7, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf8 = reinterpret_tensor(buf5, (16, 4, 4), (16, 4, 1), 0)
        del buf5
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf7, (16, 4, 4), (16, 4, 1), 0), out
            =buf8)
        buf9 = reinterpret_tensor(buf8, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf8
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf9, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf10 = reinterpret_tensor(buf7, (16, 4, 4), (16, 4, 1), 0)
        del buf7
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf9, (16, 4, 4), (16, 4, 1), 0), out
            =buf10)
        buf11 = reinterpret_tensor(buf10, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf10
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf11, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf12 = reinterpret_tensor(buf9, (16, 4, 4), (16, 4, 1), 0)
        del buf9
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf11, (16, 4, 4), (16, 4, 1), 0),
            out=buf12)
        buf13 = reinterpret_tensor(buf12, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf12
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf13, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf14 = reinterpret_tensor(buf11, (16, 4, 4), (16, 4, 1), 0)
        del buf11
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf13, (16, 4, 4), (16, 4, 1), 0),
            out=buf14)
        buf15 = reinterpret_tensor(buf14, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf14
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf15, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf16 = reinterpret_tensor(buf13, (16, 4, 4), (16, 4, 1), 0)
        del buf13
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf15, (16, 4, 4), (16, 4, 1), 0),
            out=buf16)
        buf17 = reinterpret_tensor(buf16, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf16
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf17, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf18 = reinterpret_tensor(buf15, (16, 4, 4), (16, 4, 1), 0)
        del buf15
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf17, (16, 4, 4), (16, 4, 1), 0),
            out=buf18)
        buf19 = reinterpret_tensor(buf18, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf18
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf19, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf20 = reinterpret_tensor(buf17, (16, 4, 4), (16, 4, 1), 0)
        del buf17
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf19, (16, 4, 4), (16, 4, 1), 0),
            out=buf20)
        buf21 = reinterpret_tensor(buf20, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf20
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf21, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf22 = reinterpret_tensor(buf19, (16, 4, 4), (16, 4, 1), 0)
        del buf19
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf21, (16, 4, 4), (16, 4, 1), 0),
            out=buf22)
        buf23 = reinterpret_tensor(buf22, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf22
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf23, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf24 = reinterpret_tensor(buf21, (16, 4, 4), (16, 4, 1), 0)
        del buf21
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf23, (16, 4, 4), (16, 4, 1), 0),
            out=buf24)
        buf25 = reinterpret_tensor(buf24, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf24
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf25, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf26 = reinterpret_tensor(buf23, (16, 4, 4), (16, 4, 1), 0)
        del buf23
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf25, (16, 4, 4), (16, 4, 1), 0),
            out=buf26)
        buf27 = reinterpret_tensor(buf26, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf26
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf27, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf28 = reinterpret_tensor(buf25, (16, 4, 4), (16, 4, 1), 0)
        del buf25
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf27, (16, 4, 4), (16, 4, 1), 0),
            out=buf28)
        buf29 = reinterpret_tensor(buf28, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf28
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf29, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf30 = reinterpret_tensor(buf27, (16, 4, 4), (16, 4, 1), 0)
        del buf27
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf29, (16, 4, 4), (16, 4, 1), 0),
            out=buf30)
        buf31 = reinterpret_tensor(buf30, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf30
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf31, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf32 = reinterpret_tensor(buf29, (16, 4, 4), (16, 4, 1), 0)
        del buf29
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf31, (16, 4, 4), (16, 4, 1), 0),
            out=buf32)
        buf33 = reinterpret_tensor(buf32, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf32
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf33, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf34 = reinterpret_tensor(buf31, (16, 4, 4), (16, 4, 1), 0)
        del buf31
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf33, (16, 4, 4), (16, 4, 1), 0),
            out=buf34)
        buf35 = reinterpret_tensor(buf34, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf34
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf35, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf36 = reinterpret_tensor(buf33, (16, 4, 4), (16, 4, 1), 0)
        del buf33
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf35, (16, 4, 4), (16, 4, 1), 0),
            out=buf36)
        buf37 = reinterpret_tensor(buf36, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf36
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf37, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf38 = reinterpret_tensor(buf35, (16, 4, 4), (16, 4, 1), 0)
        del buf35
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf37, (16, 4, 4), (16, 4, 1), 0),
            out=buf38)
        buf39 = reinterpret_tensor(buf38, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf38
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf39, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf40 = reinterpret_tensor(buf37, (16, 4, 4), (16, 4, 1), 0)
        del buf37
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf39, (16, 4, 4), (16, 4, 1), 0),
            out=buf40)
        buf41 = reinterpret_tensor(buf40, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf40
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf41, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf42 = reinterpret_tensor(buf39, (16, 4, 4), (16, 4, 1), 0)
        del buf39
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf41, (16, 4, 4), (16, 4, 1), 0),
            out=buf42)
        buf43 = reinterpret_tensor(buf42, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf42
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf43, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf44 = reinterpret_tensor(buf41, (16, 4, 4), (16, 4, 1), 0)
        del buf41
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf43, (16, 4, 4), (16, 4, 1), 0),
            out=buf44)
        buf45 = reinterpret_tensor(buf44, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf44
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf45, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf46 = reinterpret_tensor(buf43, (16, 4, 4), (16, 4, 1), 0)
        del buf43
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf45, (16, 4, 4), (16, 4, 1), 0),
            out=buf46)
        buf47 = reinterpret_tensor(buf46, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf46
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf47, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf48 = reinterpret_tensor(buf45, (16, 4, 4), (16, 4, 1), 0)
        del buf45
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf47, (16, 4, 4), (16, 4, 1), 0),
            out=buf48)
        buf49 = reinterpret_tensor(buf48, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf48
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf49, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf50 = reinterpret_tensor(buf47, (16, 4, 4), (16, 4, 1), 0)
        del buf47
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf49, (16, 4, 4), (16, 4, 1), 0),
            out=buf50)
        buf51 = reinterpret_tensor(buf50, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf50
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf51, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf52 = reinterpret_tensor(buf49, (16, 4, 4), (16, 4, 1), 0)
        del buf49
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf51, (16, 4, 4), (16, 4, 1), 0),
            out=buf52)
        buf53 = reinterpret_tensor(buf52, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf52
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf53, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf54 = reinterpret_tensor(buf51, (16, 4, 4), (16, 4, 1), 0)
        del buf51
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf53, (16, 4, 4), (16, 4, 1), 0),
            out=buf54)
        buf55 = reinterpret_tensor(buf54, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf54
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf55, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf56 = reinterpret_tensor(buf53, (16, 4, 4), (16, 4, 1), 0)
        del buf53
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf55, (16, 4, 4), (16, 4, 1), 0),
            out=buf56)
        buf57 = reinterpret_tensor(buf56, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf56
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf57, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf58 = reinterpret_tensor(buf55, (16, 4, 4), (16, 4, 1), 0)
        del buf55
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf57, (16, 4, 4), (16, 4, 1), 0),
            out=buf58)
        buf59 = reinterpret_tensor(buf58, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf58
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf59, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf60 = reinterpret_tensor(buf57, (16, 4, 4), (16, 4, 1), 0)
        del buf57
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf59, (16, 4, 4), (16, 4, 1), 0),
            out=buf60)
        buf61 = reinterpret_tensor(buf60, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf60
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf61, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf62 = reinterpret_tensor(buf59, (16, 4, 4), (16, 4, 1), 0)
        del buf59
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf61, (16, 4, 4), (16, 4, 1), 0),
            out=buf62)
        buf63 = reinterpret_tensor(buf62, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf62
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf63, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf64 = reinterpret_tensor(buf61, (16, 4, 4), (16, 4, 1), 0)
        del buf61
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf63, (16, 4, 4), (16, 4, 1), 0),
            out=buf64)
        buf65 = reinterpret_tensor(buf64, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf64
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf65, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf66 = reinterpret_tensor(buf63, (16, 4, 4), (16, 4, 1), 0)
        del buf63
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf65, (16, 4, 4), (16, 4, 1), 0),
            out=buf66)
        buf67 = reinterpret_tensor(buf66, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf66
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf67, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf68 = reinterpret_tensor(buf65, (16, 4, 4), (16, 4, 1), 0)
        del buf65
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf67, (16, 4, 4), (16, 4, 1), 0),
            out=buf68)
        buf69 = reinterpret_tensor(buf68, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf68
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf69, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf70 = reinterpret_tensor(buf67, (16, 4, 4), (16, 4, 1), 0)
        del buf67
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf69, (16, 4, 4), (16, 4, 1), 0),
            out=buf70)
        buf71 = reinterpret_tensor(buf70, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf70
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf71, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf72 = reinterpret_tensor(buf69, (16, 4, 4), (16, 4, 1), 0)
        del buf69
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf71, (16, 4, 4), (16, 4, 1), 0),
            out=buf72)
        buf73 = reinterpret_tensor(buf72, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf72
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf73, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf74 = reinterpret_tensor(buf71, (16, 4, 4), (16, 4, 1), 0)
        del buf71
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf73, (16, 4, 4), (16, 4, 1), 0),
            out=buf74)
        buf75 = reinterpret_tensor(buf74, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf74
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf75, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf76 = reinterpret_tensor(buf73, (16, 4, 4), (16, 4, 1), 0)
        del buf73
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf75, (16, 4, 4), (16, 4, 1), 0),
            out=buf76)
        buf77 = reinterpret_tensor(buf76, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf76
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf77, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf78 = reinterpret_tensor(buf75, (16, 4, 4), (16, 4, 1), 0)
        del buf75
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf77, (16, 4, 4), (16, 4, 1), 0),
            out=buf78)
        buf79 = reinterpret_tensor(buf78, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf78
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf79, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf80 = reinterpret_tensor(buf77, (16, 4, 4), (16, 4, 1), 0)
        del buf77
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf79, (16, 4, 4), (16, 4, 1), 0),
            out=buf80)
        buf81 = reinterpret_tensor(buf80, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf80
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf81, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf82 = reinterpret_tensor(buf79, (16, 4, 4), (16, 4, 1), 0)
        del buf79
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf81, (16, 4, 4), (16, 4, 1), 0),
            out=buf82)
        buf83 = reinterpret_tensor(buf82, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf82
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf83, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf84 = reinterpret_tensor(buf81, (16, 4, 4), (16, 4, 1), 0)
        del buf81
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf83, (16, 4, 4), (16, 4, 1), 0),
            out=buf84)
        buf85 = reinterpret_tensor(buf84, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf84
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf85, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf86 = reinterpret_tensor(buf83, (16, 4, 4), (16, 4, 1), 0)
        del buf83
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf85, (16, 4, 4), (16, 4, 1), 0),
            out=buf86)
        buf87 = reinterpret_tensor(buf86, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf86
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf87, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf88 = reinterpret_tensor(buf85, (16, 4, 4), (16, 4, 1), 0)
        del buf85
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf87, (16, 4, 4), (16, 4, 1), 0),
            out=buf88)
        buf89 = reinterpret_tensor(buf88, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf88
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf89, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf90 = reinterpret_tensor(buf87, (16, 4, 4), (16, 4, 1), 0)
        del buf87
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf89, (16, 4, 4), (16, 4, 1), 0),
            out=buf90)
        buf91 = reinterpret_tensor(buf90, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf90
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf91, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf92 = reinterpret_tensor(buf89, (16, 4, 4), (16, 4, 1), 0)
        del buf89
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf91, (16, 4, 4), (16, 4, 1), 0),
            out=buf92)
        buf93 = reinterpret_tensor(buf92, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf92
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf93, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf94 = reinterpret_tensor(buf91, (16, 4, 4), (16, 4, 1), 0)
        del buf91
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf93, (16, 4, 4), (16, 4, 1), 0),
            out=buf94)
        buf95 = reinterpret_tensor(buf94, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf94
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf95, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf96 = reinterpret_tensor(buf93, (16, 4, 4), (16, 4, 1), 0)
        del buf93
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf95, (16, 4, 4), (16, 4, 1), 0),
            out=buf96)
        buf97 = reinterpret_tensor(buf96, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf96
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf97, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        buf98 = reinterpret_tensor(buf95, (16, 4, 4), (16, 4, 1), 0)
        del buf95
        extern_kernels.bmm(reinterpret_tensor(arg1_1, (16, 4, 4), (16, 4, 1
            ), 0), reinterpret_tensor(buf97, (16, 4, 4), (16, 4, 1), 0),
            out=buf98)
        del arg1_1
        del buf97
        buf99 = reinterpret_tensor(buf98, (4, 4, 4, 4), (64, 16, 4, 1), 0)
        del buf98
        triton_poi_fused_add_clamp_mul_0[grid(256)](buf99, arg0_1, 256,
            XBLOCK=128, num_warps=4, num_stages=1)
        del arg0_1
    return buf99,


class LabelPropagationNew(nn.Module):
    """label propagation model adapted from https://github.com/CUAI/CorrectAndSmooth
    `"Learning from Labeled and
    Unlabeled Datawith Label Propagation"
    <http://mlg.eng.cam.ac.uk/zoubin/papers/CMU-CALD-02-107.pdf>`_ paper

    """

    def __init__(self, num_layers=50, alpha=0.5, residual=True):
        super().__init__()
        self.num_layers = num_layers
        self.alpha = alpha
        self.residual = residual

    def forward(self, input_0, input_1):
        arg0_1 = input_0
        arg1_1 = input_1
        output = call([arg0_1, arg1_1])
        return output[0]
