Tensor.Broadcast 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.
Overloads
Broadcast<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>) | |
Broadcast<T>(ReadOnlyTensorSpan<T>, ReadOnlySpan<IntPtr>) |
Broadcast<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
static System::Numerics::Tensors::Tensor<T> ^ Broadcast(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % input, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % lengthsSource);
public static System.Numerics.Tensors.Tensor<T> Broadcast<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> lengthsSource);
static member Broadcast : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T>
Public Function Broadcast(Of T) (ByRef input As ReadOnlyTensorSpan(Of T), ByRef lengthsSource As ReadOnlyTensorSpan(Of T)) As Tensor(Of T)
Type Parameters
- T
Parameters
- input
- ReadOnlyTensorSpan<T>
- lengthsSource
- ReadOnlyTensorSpan<T>
Returns
Applies to
Broadcast<T>(ReadOnlyTensorSpan<T>, ReadOnlySpan<IntPtr>)
- Source:
- TensorExtensions.cs
public:
generic <typename T>
static System::Numerics::Tensors::Tensor<T> ^ Broadcast(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % input, ReadOnlySpan<IntPtr> lengths);
public static System.Numerics.Tensors.Tensor<T> Broadcast<T> (scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> input, scoped ReadOnlySpan<IntPtr> lengths);
static member Broadcast : ReadOnlyTensorSpan * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T>
Public Function Broadcast(Of T) (ByRef input As ReadOnlyTensorSpan(Of T), lengths As ReadOnlySpan(Of IntPtr)) As Tensor(Of T)
Type Parameters
- T
Parameters
- input
- ReadOnlyTensorSpan<T>
- lengths
-
ReadOnlySpan<nativeint>
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for