This class represents the main Data representation node. More...
#include <ie_data.h>
Public Member Functions | |
Data (const std::string &name, Precision _precision, Layout layout=NCHW) | |
An empty constructor (dimensionless) More... | |
Data (const std::string &name, const TensorDesc &desc) | |
A constructor with tensor descriptor. More... | |
Data (const Data &data) | |
A copy constructor. More... | |
Data & | operator= (const Data &data) |
An assignment operator. More... | |
bool | isInitialized () const |
Checks if the current node is resolved. More... | |
void | setDims (const SizeVector &a_dims) |
Sets the data dimensions. More... | |
void | setLayout (Layout layout) |
Sets the layout value for this Data instance. More... | |
void | reshape (const SizeVector &dims, Layout layout) |
changes dims and layout at same time More... | |
Layout | getLayout () const |
Gets the layout value for this Data instance. | |
const TensorDesc & | getTensorDesc () const |
Gets Tensor descriptor reference. More... | |
const Precision & | getPrecision () const |
Gets a precision type of this Data instance. More... | |
void | setPrecision (const Precision &precision) |
Sets a precision type of this Data instance. More... | |
const SizeVector & | getDims () const |
const std::string & | getName () const |
void | setName (const std::string &newName) |
Sets a name the Data object. More... | |
const UserValue & | getUserObject () const |
This class represents the main Data representation node.
The NN graphs are di-graphs consisting of data nodes and layer nodes.
InferenceEngine::Data::Data | ( | const std::string & | name, |
const TensorDesc & | desc | ||
) |
A constructor with tensor descriptor.
name | Name of the data node |
desc | Tensor descriptor |
InferenceEngine::Data::Data | ( | const Data & | data | ) |
A copy constructor.
data | A data object to copy from |
const SizeVector& InferenceEngine::Data::getDims | ( | ) | const |
const std::string& InferenceEngine::Data::getName | ( | ) | const |
const Precision& InferenceEngine::Data::getPrecision | ( | ) | const |
const TensorDesc& InferenceEngine::Data::getTensorDesc | ( | ) | const |
Gets Tensor descriptor reference.
const UserValue& InferenceEngine::Data::getUserObject | ( | ) | const |
bool InferenceEngine::Data::isInitialized | ( | ) | const |
Checks if the current node is resolved.
An assignment operator.
data | A data object to copy from |
void InferenceEngine::Data::reshape | ( | const SizeVector & | dims, |
Layout | layout | ||
) |
changes dims and layout at same time
dims | new dimensions |
layout | new layout |
void InferenceEngine::Data::setDims | ( | const SizeVector & | a_dims | ) |
Sets the data dimensions.
After the current node is marked as resolved.
a_dims | Tensor dimensions to set |
void InferenceEngine::Data::setLayout | ( | Layout | layout | ) |
Sets the layout value for this Data instance.
layout | Layout value to set |
void InferenceEngine::Data::setName | ( | const std::string & | newName | ) |
Sets a name the Data object.
newName | Name of the data node |
void InferenceEngine::Data::setPrecision | ( | const Precision & | precision | ) |