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
x1andx2are supported asdpnp.ndarray. Keyword argumentskwargsare currently unsupported. Parameteraxesis 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.dotReturns the dot product.
dpnp.einsumEvaluates 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]