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

Function func

imperative/python/test/unit/xla/functional/test_xla_tensor.py:26–31  ·  view source on GitHub ↗
(inp, dout)

Source from the content-addressed store, hash-verified

24
25 @jit.xla_trace(without_host=True)
26 def func(inp, dout):
27 gm.attach([inp])
28 with gm:
29 out = F.broadcast_to(inp, tgtshape)
30 gm.backward(out, dout)
31 return [out, inp.grad]
32
33 mge_rsts = func(inp, dout)
34 xla_rsts = func(inp, dout)

Callers 1

testerFunction · 0.70

Calls 10

listFunction · 0.85
broadcast_toMethod · 0.80
concatMethod · 0.80
onesMethod · 0.80
attachMethod · 0.45
backwardMethod · 0.45
reshapeMethod · 0.45
transposeMethod · 0.45
zerosMethod · 0.45
astypeMethod · 0.45

Tested by

no test coverage detected