Class to represent axis and size of dims. User should enter axis and size of dim(s) when input tensor(s) contain(s) unknown dim(s). Such axis and size of dim(s) will be stored in ShapeHint.
More...
#include <TensorSignature.h>
|
| ShapeHint ()=default |
|
void | add (AxisHint axis, SizeHint size) |
|
std::map< AxisHint, SizeHint >::const_iterator | cbegin () const |
|
std::map< AxisHint, SizeHint >::const_iterator | cend () const |
|
bool | empty () |
|
size_t | size () |
|
Class to represent axis and size of dims. User should enter axis and size of dim(s) when input tensor(s) contain(s) unknown dim(s). Such axis and size of dim(s) will be stored in ShapeHint.
Definition at line 47 of file TensorSignature.h.
◆ ShapeHint()
tfinfo::v2::ShapeHint::ShapeHint |
( |
| ) |
|
|
default |
◆ add()
void tfinfo::v2::ShapeHint::add |
( |
AxisHint |
axis, |
|
|
SizeHint |
size |
|
) |
| |
|
inline |
Definition at line 55 of file TensorSignature.h.
56 {
57 if (_dims.find(axis) != _dims.end())
58 throw std::runtime_error("dim value already exists");
59
61 }
References size().
◆ cbegin()
std::map< AxisHint, SizeHint >::const_iterator tfinfo::v2::ShapeHint::cbegin |
( |
| ) |
const |
|
inline |
◆ cend()
std::map< AxisHint, SizeHint >::const_iterator tfinfo::v2::ShapeHint::cend |
( |
| ) |
const |
|
inline |
◆ empty()
bool tfinfo::v2::ShapeHint::empty |
( |
| ) |
|
|
inline |
◆ size()
size_t tfinfo::v2::ShapeHint::size |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: