TensorUInt8Bit Class
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.
A 8-bit unsigned integer tensor object.
public ref class TensorUInt8Bit sealed : ITensor
public ref class TensorUInt8Bit sealed : ITensor, IClosable, IMemoryBuffer
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TensorUInt8Bit final : ITensor
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class TensorUInt8Bit final : ITensor, IClosable, IMemoryBuffer
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TensorUInt8Bit : ITensor
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class TensorUInt8Bit : System.IDisposable, ITensor, IMemoryBuffer
Public NotInheritable Class TensorUInt8Bit
Implements ITensor
Public NotInheritable Class TensorUInt8Bit
Implements IDisposable, IMemoryBuffer, ITensor
- Inheritance
- Attributes
- Implements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.AI.MachineLearning.MachineLearningContract (introduced in v1.0)
|
A tensor is a multi-dimensional array of values. An 8-bit unsigned integer tensor is a tensor of 8-bit unsigned integer values.
The layout of tensors is row-major, with tightly packed contiguous data representing each dimension. The total size of a tensor is the product of the size of each dimension.
To use this API on Windows Server, you must use Windows Server 2019 with Desktop Experience.
This API is thread-safe.
Windows version | SDK version | Value added |
---|---|---|
1903 | 18362 | CreateFromBuffer |
1903 | 18362 | CreateFromShapeArrayAndDataArray |
Kind |
The kind of the feature. |
Shape |
Returns the count and size of each dimension. |
Tensor |
Returns the data type of the tensor. |
Close() |
If there are no outstanding IMemoryBufferReference objects created from this object, Close will dispose of the object and destroy its associated resources. Otherwise, Close will detach itself from its associated resources and they will be destroyed when the last IMemoryBufferReference is closed. |
Create() |
Creates an 8-bit unsigned integer tensor object without allocating a buffer. |
Create(IIterable<Int64>) |
Creates an 8-bit unsigned integer tensor object and allocates a buffer of size shape. |
Create |
Creates an 8-bit unsigned integer tensor object, allocates a buffer of size shape, and copies all of data into it. |
Create |
Creates an 8-bit unsigned integer tensor object with the given shape and uses the underlying buffer in buffer for subsequent evaluation. |
Create |
Creates an 8-bit unsigned integer tensor object, allocates a buffer of size shape, and copies all of data into it. |
Create |
Creates an 8-bit unsigned integer tensor object, allocates a buffer of size shape, and copies all of data into it. |
Create |
Returns an IMemoryBufferReference representation of the buffer backing the 8-bit unsigned tensor object. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Get |
Returns a read-only view of the data. |
Product | Versions |
---|---|
WinRT | Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |