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

Function fwd

imperative/python/test/unit/utils/test_network_node.py:85–90  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

83def test_elemwise():
84 @trace(symbolic=True, capture_as_const=True)
85 def fwd(x, y):
86 z1 = x * y
87 z2 = x + y
88 z3 = z1 / z2
89 z3 = z3 ** 3
90 return z3
91
92 x = Tensor([1.0, 2.0])
93 y = Tensor([3.0, 5.0])

Callers 15

test_elemwiseFunction · 0.70
test_reduceFunction · 0.70
test_typecvtFunction · 0.70
test_matinvFunction · 0.70
test_matmulFunction · 0.70
test_batchmatmulFunction · 0.70
test_dotFunction · 0.70
test_svdFunction · 0.70
test_convFunction · 0.70
test_deformable_convFunction · 0.70
test_convtransposeFunction · 0.70
test_convtranspose_int8Function · 0.70

Calls 13

DeviceClass · 0.90
uniformMethod · 0.80
normalMethod · 0.80
to_cMethod · 0.80
concatMethod · 0.80
broadcast_toMethod · 0.80
applyFunction · 0.50
sumMethod · 0.45
meanMethod · 0.45
astypeMethod · 0.45
toMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected