Home
last modified time | relevance | path

Searched refs:linspace (Results 1 – 13 of 13) sorted by relevance

/third_party/mindspore/tests/st/ops/gpu/
Dtest_lin_space.py49 result_np = np.linspace(start_np, stop_np, num_np)
66 result_np = np.linspace(start_np, stop_np, num_np)
82 result_np = np.linspace(start_np, stop_np, num_np)
98 result_np = np.linspace(start_np, stop_np, num_np)
Dtest_sampled_softmax_loss_op.py25 weights_s = np.linspace(start=1, stop=num_classes * dim, num=num_classes * dim)
27 biases_s = np.linspace(start=1, stop=num_classes, num=num_classes)
29 hidden_acts_s = np.linspace(start=1, stop=batch_size * dim, num=batch_size * dim)
/third_party/mindspore/tests/st/numpy_native/
Dtest_array_creations.py335 actual = onp.linspace(2.0, 3.0, dtype=onp.float32)
336 expected = mnp.linspace(2.0, 3.0).asnumpy()
339 actual = onp.linspace(2.0, 3.0, num=5, dtype=onp.float32)
340 expected = mnp.linspace(2.0, 3.0, num=5).asnumpy()
343 actual = onp.linspace(
345 expected = mnp.linspace(2.0, 3.0, num=5, endpoint=False).asnumpy()
348 actual = onp.linspace(2.0, 3.0, num=5, retstep=True, dtype=onp.float32)
349 expected = mnp.linspace(2.0, 3.0, num=5, retstep=True)
353 actual = onp.linspace(2.0, [3, 4, 5], num=5,
355 expected = mnp.linspace(
[all …]
Dtest_math_ops.py2501 …x = onp.linspace(onp.linspace((0, 1), (10, 15), 5), onp.linspace((0, 2), (3*onp.pi, 7*onp.pi), 5),…
/third_party/mindspore/mindspore/compression/quant/
Dquant_utils.py261 fwd_x = np.linspace(0.0, 1.0, bit_pow_range)
262 fwd_xp = np.linspace(0.0, 1.0, i)
266 bwd_x = np.linspace(0.0, 1.0, i)
267 bwd_xp = np.linspace(0.0, 1.0, bit_pow_range)
/third_party/boost/libs/numeric/odeint/test_external/nt2/
Dcopy.cpp34 nt2::table<T> x = nt2::linspace(T(1),T(0),7); in BOOST_AUTO_TEST_CASE_TEMPLATE()
/third_party/boost/libs/python/example/numpy/
Ddemo_gaussian.py16 r = numpy.linspace(-40, 40, 1001)
/third_party/mindspore/tests/ut/python/pipeline/parse/
Dtest_parse_numpy.py44 ret = np.linspace(1, 10, 4)
/third_party/mindspore/mindspore/numpy/
Darray_creations.py477 def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, axis=0): function
595 … linspace_res = linspace(start, stop, num, endpoint=endpoint, retstep=False, dtype=None, axis=axis)
646 exponents = linspace(zeros(F.shape(bases)), F.fill(F.dtype(bases), F.shape(bases), root),
1343 v = linspace(k.start, k.stop, int(abs(step)))
2121 return linspace(start, end, bins + 1)
2222 pad_before = (linspace(end_values[i][0], left_value, num=pad_width[i][0],
2225 pad_after = linspace(right_value, end_values[i][1], num=pad_width[i][1]+1,
D__init__.py38 linspace, logspace, eye, identity, empty, empty_like,
/third_party/mindspore/mindspore/train/summary/
D_summary_adapter.py330 bins = np.linspace(first_edge, last_edge, bins + 1, dtype=np_value.dtype)
/third_party/mindspore/
DRELEASE.md2046 >>> linspace = nn.LinSpace(start, stop, num)
2047 >>> output = linspace()
2058 >>> linspace = ops.LinSpace()
2062 >>> output = linspace(start, stop, num)
/third_party/python/Doc/library/
Dstdtypes.rst1418 * The `linspace recipe <http://code.activestate.com/recipes/579000/>`_