MCPcopy Create free account
hub / github.com/apple/coremltools / test_method_vectorization

Function test_method_vectorization

deps/pybind11/tests/test_numpy_vectorize.py:242–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240
241
242def test_method_vectorization():
243 o = m.VectorizeTestClass(3)
244 x = np.array([1, 2], dtype="int")
245 y = np.array([[10], [20]], dtype="float32")
246 assert np.all(o.method(x, y) == [[14, 15], [24, 25]])
247
248
249def test_array_collapse():

Callers

nothing calls this directly

Calls 3

methodMethod · 0.95
VectorizeTestClassMethod · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected