InitInfo
constructor(dataType: Tensor.DataType, dimensions: IntArray, usageFlag: Tensor.TensorUsage, channel: Int, specialFlag: Int = 0)
Parameters
dataType
basic data type of the tensor's content.
dimensions
an array of sizes along each dimension of the tensor, describing the tensor's shape.
usageFlag
usage flag of the tensor, declaring whether the tensor will be used as a multi-dimensional tensor, or storing structured data for specific usage.
channel
number of tensor, i.e., how many values of basic data types each element in this tensor consists of. e.g., a 2D RGB image of UINT8 data type will have three channels, because each element (pixel) in this image contains 3 UINT8 values, and such a 3-channel UINT8 tensor will therefore represent a R8G8B8 image.
specialFlag
special flag for the tensor's declaration.