SetDataType
Description
Sets the data type of a tensor.
Prototype
void SetDataType(DataType type)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
type |
Input |
Data type. |
Returns
None
Restrictions
None
Example
tensor->SetDataType(DT_FLOAT);
Parent topic: Class Tensor