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

Function test_func

imperative/python/test/unit/module/test_elemwise.py:10–13  ·  view source on GitHub ↗
(method, *inps)

Source from the content-addressed store, hash-verified

8
9def test_module_elemwise():
10 def test_func(method, *inps):
11 elemwise = Elemwise(method)
12 outputs = elemwise(*inps)
13 return outputs.numpy()
14
15 x = np.random.rand(100).astype("float32")
16 y = np.random.rand(100).astype("float32")

Callers 1

test_module_elemwiseFunction · 0.70

Calls 3

ElemwiseClass · 0.90
elemwiseFunction · 0.50
numpyMethod · 0.45

Tested by

no test coverage detected