|
ONE - On-device Neural Engine
|
#include <Dim.h>
Public Member Functions | |
| Dim (int32_t dim) | |
| Initialize single dimension. Note that '-1' means a dynamic dimension. | |
| bool | is_dynamic () const |
| Returns true if the dimension is dynamic. Otherwise, return false. | |
| int32_t | value () const |
| Returns value of dimension in int32_t representation. | |
| bool | operator== (const Dim &rhs) const |
| Returns true of the current dimension and the provided rhs are equal. | |
Static Public Member Functions | |
| static Dim | dynamic () |
| Create dynamic dimension. Note that it's equivalent of Dim{-1}. | |
The representation of a single dimension. Note that a dimension can be dynamic.
|
explicit |
Initialize single dimension. Note that '-1' means a dynamic dimension.
Exceptions:
Definition at line 23 of file Dim.cpp.
|
static |
| bool Dim::is_dynamic | ( | ) | const |
Returns true if the dimension is dynamic. Otherwise, return false.
Definition at line 33 of file Dim.cpp.
Referenced by circle_resizer::Shape::is_dynamic().
| bool Dim::operator== | ( | const Dim & | rhs | ) | const |
Returns true of the current dimension and the provided rhs are equal.
Definition at line 37 of file Dim.cpp.
References value().
| int32_t Dim::value | ( | ) | const |
Returns value of dimension in int32_t representation.
Definition at line 35 of file Dim.cpp.
Referenced by operator==().