MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / func

Function func

imperative/python/test/unit/xla/test_xla_trace.py:22–24  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

20@pytest.mark.skipif(not is_cuda_available(), reason="only support cuda now")
21def test_partial_trace_inplace():
22 def func(x, y):
23 x += 1
24 y += 1
25
26 xla_func = partial_trace(func, backend="xla")
27 xla_func(tensor(1), tensor(2))

Callers 2

testerFunction · 0.70

Calls 2

modFunction · 0.50
backwardMethod · 0.45

Tested by

no test coverage detected