SkillFeatureTensorDescriptor.CreateValueAsync(Object, ISkillExecutionDevice) 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.
Creates an ISkillFeatureValue of SkillFeatureKind.Tensor according to the shape specified by value.
public:
virtual Windows::Foundation::IAsyncOperation<Microsoft::AI::Skills::SkillInterfacePreview::ISkillFeatureValue ^> ^ CreateValueAsync(System::Object ^ value, Microsoft::AI::Skills::SkillInterfacePreview::ISkillExecutionDevice ^ device) = Microsoft::AI::Skills::SkillInterfacePreview::ISkillFeatureDescriptor::CreateValueAsync;
public Windows.Foundation.IAsyncOperation<Microsoft.AI.Skills.SkillInterfacePreview.ISkillFeatureValue> CreateValueAsync (object value, Microsoft.AI.Skills.SkillInterfacePreview.ISkillExecutionDevice device);
abstract member CreateValueAsync : obj * Microsoft.AI.Skills.SkillInterfacePreview.ISkillExecutionDevice -> Windows.Foundation.IAsyncOperation<Microsoft.AI.Skills.SkillInterfacePreview.ISkillFeatureValue>
override this.CreateValueAsync : obj * Microsoft.AI.Skills.SkillInterfacePreview.ISkillExecutionDevice -> Windows.Foundation.IAsyncOperation<Microsoft.AI.Skills.SkillInterfacePreview.ISkillFeatureValue>
Public Function CreateValueAsync (value As Object, device As ISkillExecutionDevice) As IAsyncOperation(Of ISkillFeatureValue)
Parameters
- value
- Object
The value from which to create the ISkillFeatureValue. It must be an IReadOnlyList<TYPE> where TYPE is the primitive that correlates to the SkillElementKind contained in the tensor.
- device
- ISkillExecutionDevice
The execution device to be used by the skill which dictates the memory space.
Returns
- Windows.Foundation.IAsyncOperation<ISkillFeatureValue>
The ISkillFeatureValue created from value.