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

Function _is_call_no_grad

tests/python/relax/test_op_gradient_numeric.py:107–108  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

105 return np.random.uniform(size=[int(i) for i in out_sinfo.shape]).astype(out_sinfo.dtype)
106
107 def _is_call_no_grad(expr):
108 return isinstance(expr, Call) and expr.op == Op.get("relax.grad.no_grad")
109
110 # Generate parameter relax Vars
111 param_vars = [

Callers 1

relax_check_gradientsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…