MCPcopy Create free account
hub / github.com/apache/tvm / func

Function func

tests/python/codegen/test_target_codegen_vulkan.py:352–357  ·  view source on GitHub ↗
(A: T.Buffer((N, 2), "int32"))

Source from the content-addressed store, hash-verified

350
351 @T.prim_func(s_tir=True)
352 def func(A: T.Buffer((N, 2), "int32")):
353 for i in T.thread_binding(N, thread="threadIdx.x"):
354 with T.sblock("A"):
355 v_i = T.axis.spatial(N, i)
356 A[v_i, 0] = T.floordiv(v_i - offset, divisor)
357 A[v_i, 1] = T.floormod(v_i - offset, divisor)
358
359 built = tvm.compile(func, target=target)
360

Callers 2

run_testFunction · 0.70

Calls 1

spatialMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…