Share via


MPSGraphMemoryOps_Extensions.Variable Method

Definition

Overloads

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

Returns

Applies to