Back to Aurora Vision Deep Learning website
You are here: Start » Computer Vision » Deep Learning » ConvertRealArrayToTensor
ConvertRealArrayToTensor
| Header: | AVLDL.h |
|---|---|
| Namespace: | avl |
| Module: | DeepLearning |
Converts an array of reals to a tensor with provided dimensions and the ordering.
Syntax
C++
C#
void avl::ConvertRealArrayToTensor ( const atl::Array<float>& inRealArray, const atl::Array<int>& inTensorDimensions, avl::TensorDataOrdering::Type inTensorDataOrdering, avl::Tensor& outTensor )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inRealArray | const Array<float>& | ||
![]() |
inTensorDimensions | const Array<int>& | ||
![]() |
inTensorDataOrdering | TensorDataOrdering::Type | ||
![]() |
outTensor | Tensor& |
Errors
List of possible exceptions:
| Error type | Description |
|---|---|
| DomainError | Tensor must have the same number of elements as inRealArray. |


