Share via


MPSGraph_MemoryOps.Constant Method

Definition

Overloads

Constant(MPSGraph, Double, MPSDataType)

[Foundation.Export("constantWithScalar:dataType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Constant(this MetalPerformanceShadersGraph.MPSGraph This, double scalar, MetalPerformanceShaders.MPSDataType dataType);
[<Foundation.Export("constantWithScalar:dataType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Constant : MetalPerformanceShadersGraph.MPSGraph * double * MetalPerformanceShaders.MPSDataType -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
scalar
Double
dataType
MPSDataType

Returns

Attributes

Applies to

Constant(MPSGraph, Double, Double)

[Foundation.Export("constantWithRealPart:imaginaryPart:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Constant(this MetalPerformanceShadersGraph.MPSGraph This, double realPart, double imaginaryPart);
[<Foundation.Export("constantWithRealPart:imaginaryPart:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Constant : MetalPerformanceShadersGraph.MPSGraph * double * double -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
realPart
Double
imaginaryPart
Double

Returns

Attributes

Applies to

Constant(MPSGraph, NSData, Int32[], MPSDataType)

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

Parameters

This
MPSGraph
data
NSData
shape
Int32[]
dataType
MPSDataType

Returns

Attributes

Applies to

Constant(MPSGraph, Double, Double, MPSDataType)

[Foundation.Export("constantWithRealPart:imaginaryPart:dataType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Constant(this MetalPerformanceShadersGraph.MPSGraph This, double realPart, double imaginaryPart, MetalPerformanceShaders.MPSDataType dataType);
[<Foundation.Export("constantWithRealPart:imaginaryPart:dataType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Constant : MetalPerformanceShadersGraph.MPSGraph * double * double * MetalPerformanceShaders.MPSDataType -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
realPart
Double
imaginaryPart
Double
dataType
MPSDataType

Returns

Attributes

Applies to

Constant(MPSGraph, Double, Int32[], MPSDataType)

[Foundation.Export("constantWithScalar:shape:dataType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Constant(this MetalPerformanceShadersGraph.MPSGraph This, double scalar, int[] shape, MetalPerformanceShaders.MPSDataType dataType);
[<Foundation.Export("constantWithScalar:shape:dataType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Constant : MetalPerformanceShadersGraph.MPSGraph * double * int[] * MetalPerformanceShaders.MPSDataType -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
scalar
Double
shape
Int32[]
dataType
MPSDataType

Returns

Attributes

Applies to

Constant(MPSGraph, Double, Double, Int32[], MPSDataType)

[Foundation.Export("constantWithRealPart:imaginaryPart:shape:dataType:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static MetalPerformanceShadersGraph.MPSGraphTensor Constant(this MetalPerformanceShadersGraph.MPSGraph This, double realPart, double imaginaryPart, int[] shape, MetalPerformanceShaders.MPSDataType dataType);
[<Foundation.Export("constantWithRealPart:imaginaryPart:shape:dataType:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Constant : MetalPerformanceShadersGraph.MPSGraph * double * double * int[] * MetalPerformanceShaders.MPSDataType -> MetalPerformanceShadersGraph.MPSGraphTensor

Parameters

This
MPSGraph
realPart
Double
imaginaryPart
Double
shape
Int32[]
dataType
MPSDataType

Returns

Attributes

Applies to