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

Function abs

tests/python/tvmscript/test_tvmscript_roundtrip.py:1998–2008  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1996
1997
1998def abs():
1999 @T.prim_func(s_tir=True)
2000 def abs(a: T.handle) -> None:
2001 A = T.match_buffer(a, (128, 128), "float32")
2002
2003 for i, j in T.grid(128, 128):
2004 with T.sblock("A"):
2005 vi, vj = T.axis.remap("SS", [i, j])
2006 A[vi, vj] = T.abs(A[vi, vj])
2007
2008 return abs
2009
2010
2011def constant_folding():

Callers 3

verifyFunction · 0.50
test_const_fold4Function · 0.50
validate_debug_dir_pathFunction · 0.50

Calls 1

remapMethod · 0.80

Tested by

no test coverage detected