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

Function fcompute

tests/python/te/test_te_create_primfunc.py:969–973  ·  view source on GitHub ↗
(*axes)

Source from the content-addressed store, hash-verified

967 x = te.placeholder([8, 8, 8, 8, 8], "float32", "x")
968
969 def fcompute(*axes):
970 r1 = te.reduce_axis(tvm.ir.Range.from_min_extent(0, axes[1]))
971 r2 = te.reduce_axis(tvm.ir.Range.from_min_extent(0, r1))
972 all_axes = [*axes, r1, r2]
973 return te.sum(x(*all_axes), [r1, r2])
974
975 y = te.compute([8, 8, 8], fcompute)
976 f = te.create_prim_func([x, y])

Callers 2

computeFunction · 0.85
externFunction · 0.85

Calls 2

from_min_extentMethod · 0.80
sumMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…