編集

次の方法で共有


MLFeatureValue.Create Method

Definition

Overloads

Create(String)

Returns an MLFeatureValue that wraps a string.

Create(Int64)

Returns an MLFeatureValue that wraps a 64-bit integer.

Create(Double)

Returns an MLFeatureValue that wraps a double.

Create(NSDictionary<NSObject,NSNumber>, NSError)

Returns an MLFeatureValue that wraps a dictionary, and reports any errors in error.

Create(MLSequence)

Returns a MLFeatureValue representing the .

Create(MLMultiArray)

Returns an MLFeatureValue that wraps an MLMultiArray.

Create(CVPixelBuffer)

Returns an MLFeatureValue that wraps a CVPixelBuffer.

Create(String)

Returns an MLFeatureValue that wraps a string.

[Foundation.Export("featureValueWithString:")]
public static CoreML.MLFeatureValue Create (string value);
static member Create : string -> CoreML.MLFeatureValue

Parameters

value
String

A string with which to create and return a new feature value.

Returns

Attributes

Applies to

Create(Int64)

Returns an MLFeatureValue that wraps a 64-bit integer.

[Foundation.Export("featureValueWithInt64:")]
public static CoreML.MLFeatureValue Create (long value);
static member Create : int64 -> CoreML.MLFeatureValue

Parameters

value
Int64

A 64-bit integer with which to create and return a new feature value.

Returns

Attributes

Applies to

Create(Double)

Returns an MLFeatureValue that wraps a double.

[Foundation.Export("featureValueWithDouble:")]
public static CoreML.MLFeatureValue Create (double value);
static member Create : double -> CoreML.MLFeatureValue

Parameters

value
Double

A double with which to create and return a new feature value.

Returns

Attributes

Applies to

Create(NSDictionary<NSObject,NSNumber>, NSError)

Returns an MLFeatureValue that wraps a dictionary, and reports any errors in error.

[Foundation.Export("featureValueWithDictionary:error:")]
public static CoreML.MLFeatureValue Create (Foundation.NSDictionary<Foundation.NSObject,Foundation.NSNumber> value, out Foundation.NSError error);
static member Create : Foundation.NSDictionary<Foundation.NSObject, Foundation.NSNumber> *  -> CoreML.MLFeatureValue

Parameters

value
NSDictionary<NSObject,NSNumber>

A dictionary with which to create and return a new feature value.

error
NSError

If not null, the error that occurred.

Returns

Attributes

Applies to

Create(MLSequence)

Returns a MLFeatureValue representing the .

[Foundation.Export("featureValueWithSequence:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static CoreML.MLFeatureValue Create (CoreML.MLSequence sequence);
static member Create : CoreML.MLSequence -> CoreML.MLFeatureValue

Parameters

sequence
MLSequence

A sequence of data.

Returns

Attributes

Applies to

Create(MLMultiArray)

Returns an MLFeatureValue that wraps an MLMultiArray.

[Foundation.Export("featureValueWithMultiArray:")]
public static CoreML.MLFeatureValue Create (CoreML.MLMultiArray value);
static member Create : CoreML.MLMultiArray -> CoreML.MLFeatureValue

Parameters

value
MLMultiArray

A multiarray with which to create and return a new feature value.

Returns

Attributes

Applies to

Create(CVPixelBuffer)

Returns an MLFeatureValue that wraps a CVPixelBuffer.

[Foundation.Export("featureValueWithPixelBuffer:")]
public static CoreML.MLFeatureValue Create (CoreVideo.CVPixelBuffer value);
static member Create : CoreVideo.CVPixelBuffer -> CoreML.MLFeatureValue

Parameters

value
CVPixelBuffer

A pixel buffer with which to create and return a new feature value.

Returns

Attributes

Applies to