MCPcopy Index your code
hub / github.com/apache/tvm / arange

Method arange

tests/python/runtime/test_runtime_extension.py:28–32  ·  view source on GitHub ↗
(A: T.handle)

Source from the content-addressed store, hash-verified

26 class Module:
27 @T.prim_func(s_tir=True)
28 def arange(A: T.handle):
29 n = T.int32()
30 Ab = T.match_buffer(A, (n,), "int64")
31 for i in T.serial(n - 1):
32 Ab[i + 1] = Ab[i] + T.int64(1)
33
34 mod = Module
35 f = tvm.compile(mod, target="llvm")

Callers 15

_index_putMethod · 0.45
_index_tensorMethod · 0.45
_arangeMethod · 0.45
_linspaceMethod · 0.45
arangeFunction · 0.45
get_timestep_embeddingFunction · 0.45
multinomial_from_uniformFunction · 0.45
_impl_v13Method · 0.45
_impl_v12Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected