Tensor.GetSmallestBroadcastableLengths Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the smallest broadcastable lengths for two shapes.
public:
static cli::array <IntPtr> ^ GetSmallestBroadcastableLengths(ReadOnlySpan<IntPtr> shape1, ReadOnlySpan<IntPtr> shape2);
public static IntPtr[] GetSmallestBroadcastableLengths (ReadOnlySpan<IntPtr> shape1, ReadOnlySpan<IntPtr> shape2);
static member GetSmallestBroadcastableLengths : ReadOnlySpan<nativeint> * ReadOnlySpan<nativeint> -> nativeint[]
Public Function GetSmallestBroadcastableLengths (shape1 As ReadOnlySpan(Of IntPtr), shape2 As ReadOnlySpan(Of IntPtr)) As IntPtr()
Parameters
- shape1
-
ReadOnlySpan<nativeint>
The first shape to broadcast.
- shape2
-
ReadOnlySpan<nativeint>
The second shape to broadcast.
Returns
IntPtr[]
nativeint[]
The smallest lengths these shapes can be broadcast to.
Exceptions
The lengths of shape1
and shape2
are not broadcast compatible.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.