Home
last modified time | relevance | path

Searched refs:np_weight (Results 1 – 5 of 5) sorted by relevance

/dports/astro/astrometry/astrometry.net-0.85/util/
H A Dutil.i743 PyArrayObject *np_img=NULL, *np_weight=NULL, *np_outimg=NULL, *np_outweight=NULL; in lanczos_shift_image_c() local
766 if (!np_weight) { in lanczos_shift_image_c()
795 if (np_weight) { in lanczos_shift_image_c()
796 if ((PyArray_DIM(np_weight, 0) != H) || in lanczos_shift_image_c()
797 (PyArray_DIM(np_weight, 1) != W)) { in lanczos_shift_image_c()
801 weight = PyArray_DATA(np_weight); in lanczos_shift_image_c()
1771 PyArrayObject *np_img=NULL, *np_weight=NULL;
1785 if (!np_weight) {
1787 Py_XDECREF(np_weight);
1791 weight = PyArray_DATA(np_weight);
[all …]
H A Dutil_wrap.c3681 PyArrayObject *np_img=NULL, *np_weight=NULL, *np_outimg=NULL, *np_outweight=NULL; in lanczos_shift_image_c() local
3704 if (!np_weight) { in lanczos_shift_image_c()
3733 if (np_weight) { in lanczos_shift_image_c()
3734 if ((PyArray_DIM(np_weight, 0) != H) || in lanczos_shift_image_c()
3735 (PyArray_DIM(np_weight, 1) != W)) { in lanczos_shift_image_c()
3739 weight = PyArray_DATA(np_weight); in lanczos_shift_image_c()
4402 PyArrayObject *np_img=NULL, *np_weight=NULL; in coadd_add_numpy() local
4416 if (!np_weight) { in coadd_add_numpy()
4418 Py_XDECREF(np_weight); in coadd_add_numpy()
4422 weight = PyArray_DATA(np_weight); in coadd_add_numpy()
[all …]
/dports/misc/mxnet/incubator-mxnet-1.9.0/3rdparty/tvm/tests/python/relay/
H A Dtest_pass_alter_op_layout.py635 np_weight = np.random.uniform(size=(32, 32, 3, 3)).astype("float32")
636 result_before = ex_before.evaluate()(np_data, np_weight)
637 result_new = ex_new.evaluate()(np_data, np_weight)
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/tests/python/unittest/
H A Dtest_operator.py1223 np_weight = np.random.uniform(-0.01, 0.01, arg_map["embed_weight"].shape)
1228 arg_map["embed_weight"][:] = np_weight
1233 assert_almost_equal(exe_test.outputs[0], np.dot(np_onehot, np_weight), rtol=rtol, atol=atol)
/dports/misc/mxnet/incubator-mxnet-1.9.0/tests/python/unittest/
H A Dtest_operator.py1223 np_weight = np.random.uniform(-0.01, 0.01, arg_map["embed_weight"].shape)
1228 arg_map["embed_weight"][:] = np_weight
1233 assert_almost_equal(exe_test.outputs[0], np.dot(np_onehot, np_weight), rtol=rtol, atol=atol)