Back to FabImage Deep Learning website
You are here: Start » Computer Vision » Deep Learning » ConvertRealArrayToTensor

ConvertRealArrayToTensor
Header: | FILDL.h |
---|---|
Namespace: | fil |
Module: | DeepLearning |
Converts an array of reals to a tensor with provided dimensions and the ordering.
Syntax
C++
C#
void fil::ConvertRealArrayToTensor ( const ftl::Array<float>& inRealArray, const ftl::Array<int>& inTensorDimensions, fil::TensorDataOrdering::Type inTensorDataOrdering, fil::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. |