Share via


MPSGraph_MemoryOps.Variable Method

Definition

Overloads

Variable(MPSGraph, MPSGraphTensor, String)

[Foundation.Export("variableFromTensorWithTensor:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Variable(this MetalPerformanceShadersGraph.MPSGraph This, MetalPerformanceShadersGraph.MPSGraphTensor tensor, string? name);
[<Foundation.Export("variableFromTensorWithTensor:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Variable : MetalPerformanceShadersGraph.MPSGraph * MetalPerformanceShadersGraph.MPSGraphTensor * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
name
String

Returns

Attributes

Applies to

Variable(MPSGraph, NSData, Int32[], MPSDataType, String)

[Foundation.Export("variableWithData:shape:dataType:name:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Variable(this MetalPerformanceShadersGraph.MPSGraph This, Foundation.NSData data, int[] shape, MetalPerformanceShaders.MPSDataType dataType, string? name);
[<Foundation.Export("variableWithData:shape:dataType:name:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Variable : MetalPerformanceShadersGraph.MPSGraph * Foundation.NSData * int[] * MetalPerformanceShaders.MPSDataType * string -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
data
NSData
shape
Int32[]
dataType
MPSDataType
name
String

Returns

Attributes

Applies to