MPSGraphMemoryOps_Extensions.Variable 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
| Name | Description |
|---|---|
| Variable(MPSGraph, ReadOnlySpan<Single>, Int32[], String) | |
| Variable(MPSGraph, Single, Int32[], String) |
Variable(MPSGraph, ReadOnlySpan<Single>, Int32[], String)
public static MetalPerformanceShadersGraph.MPSGraphTensor Variable(this MetalPerformanceShadersGraph.MPSGraph graph, ReadOnlySpan<float> initialValues, int[] shape, string? name = default);
static member Variable : MetalPerformanceShadersGraph.MPSGraph * ReadOnlySpan<single> * int[] * string -> MetalPerformanceShadersGraph.MPSGraphTensor
Parameters
- graph
- MPSGraph
- initialValues
- ReadOnlySpan<Single>
- shape
- Int32[]
- name
- String
Returns
Applies to
Variable(MPSGraph, Single, Int32[], String)
public static MetalPerformanceShadersGraph.MPSGraphTensor Variable(this MetalPerformanceShadersGraph.MPSGraph graph, float initialValue, int[] shape, string? name = default);
static member Variable : MetalPerformanceShadersGraph.MPSGraph * single * int[] * string -> MetalPerformanceShadersGraph.MPSGraphTensor
Parameters
- graph
- MPSGraph
- initialValue
- Single
- shape
- Int32[]
- name
- String