dpnp.tensordot
- dpnp.tensordot(x1, x2, axes=2)[source]
Compute tensor dot product along specified axes.
For full documentation refer to
numpy.tensordot
.Limitations
Parameters
x1
andx2
are supported asdpnp.ndarray
. Keyword argumentskwargs
are currently unsupported. Parameteraxes
is supported only with value1
. Otherwise the functions will be executed sequentially on CPU. Input array data types are limited by supported DPNP Data types.See also
dpnp.dot
Returns the dot product.
dpnp.einsum
Evaluates the Einstein summation convention on the operands.
Examples
>>> import dpnp as np >>> a = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) >>> b = np.array([1, 2, 3]) >>> result = np.tensordot(a, b, 1) >>> [x for x in result] [14, 32, 50]