#include <TensorShape.hpp>
◆ TensorShape() [1/5]
fast::TensorShape::TensorShape |
( |
std::initializer_list< int > |
dimensions | ) |
|
Construct tensor shape
- Parameters
-
◆ TensorShape() [2/5]
fast::TensorShape::TensorShape |
( |
VectorXi |
dimensions | ) |
|
Construct tensor shape
- Parameters
-
◆ TensorShape() [3/5]
fast::TensorShape::TensorShape |
( |
std::vector< int > |
dimensions | ) |
|
|
explicit |
Construct tensor shape
- Parameters
-
◆ TensorShape() [4/5]
fast::TensorShape::TensorShape |
( |
const TensorShape & |
other | ) |
|
Copy constructor
- Parameters
-
◆ TensorShape() [5/5]
fast::TensorShape::TensorShape |
( |
| ) |
|
Construct empty (invalid) tensor shape
◆ addDimension()
void fast::TensorShape::addDimension |
( |
int |
value | ) |
|
Add a dimension to the end of the shape with value
- Parameters
-
◆ deleteDimension()
void fast::TensorShape::deleteDimension |
( |
int |
index | ) |
|
Delete a dimension
- Parameters
-
◆ deleteDimensions()
void fast::TensorShape::deleteDimensions |
( |
int |
startIndex, |
|
|
int |
endIndex |
|
) |
| |
Delete a range of dimensions
- Parameters
-
◆ empty()
bool fast::TensorShape::empty |
( |
| ) |
const |
◆ getAll()
std::vector<int> fast::TensorShape::getAll |
( |
| ) |
const |
Get all dimensions as vector
- Returns
◆ getDimensions()
int fast::TensorShape::getDimensions |
( |
| ) |
const |
Get nr of dimensions
- Returns
◆ getKnownDimensions()
int fast::TensorShape::getKnownDimensions |
( |
| ) |
const |
Get nr of known dimensions (dimension not -1)
- Returns
◆ getTotalSize()
int fast::TensorShape::getTotalSize |
( |
| ) |
const |
Total size of tensor, excluding any unknown dimensions
- Returns
◆ getUnknownDimensions()
int fast::TensorShape::getUnknownDimensions |
( |
| ) |
const |
Get nr of unknown dimensions (dimensions that are -1)
◆ insertDimension()
void fast::TensorShape::insertDimension |
( |
int |
position, |
|
|
int |
value |
|
) |
| |
Insert a new dimension at a given position with the given value
- Parameters
-
◆ operator=()
Assignment constructor
- Parameters
-
- Returns
◆ operator[]() [1/2]
int& fast::TensorShape::operator[] |
( |
int |
i | ) |
|
◆ operator[]() [2/2]
const int& fast::TensorShape::operator[] |
( |
int |
i | ) |
const |
◆ setDimension()
void fast::TensorShape::setDimension |
( |
int |
i, |
|
|
int |
value |
|
) |
| |
Set dimension i to value
- Parameters
-
◆ toString()
std::string fast::TensorShape::toString |
( |
| ) |
const |
Convert shape into string
The documentation for this class was generated from the following file: