Class OutputUtility
Utility methods for Output<T>
Inherited Members
Namespace: Unity.InferenceEngine.Tokenization
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
public static class OutputUtility
Methods
AsOutput<T>(ICollection<T>, Func<T, T>)
Creates an instance of Output<T> from the specified
this.
Declaration
public static Output<T> AsOutput<T>(this ICollection<T> @this, Func<T, T> transform = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection<T> | this | The target storage. |
| Func<T, T> | transform | The transformation method. Common usage is cloning the values. |
Returns
| Type | Description |
|---|---|
| Output<T> | An Output<T> wrapper. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to add. |