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
Input value inRealArray const Array<float>&
Input value inTensorDimensions const Array<int>&
Input value inTensorDataOrdering TensorDataOrdering::Type
Output value outTensor Tensor&

Errors

List of possible exceptions:

Error type Description
DomainError Tensor must have the same number of elements as inRealArray.