|
ONE - On-device Neural Engine
|
The value of one dimension in a tensor shape. More...
#include <Dimension.h>
Public Member Functions | |
| Dimension ()=default | |
| Construct an "unknown" dimension. | |
| Dimension (uint32_t value) | |
| Construct a "known" dimension. | |
| bool | known (void) const |
| Return whether the value is known (or not) | |
| uint32_t | value (void) const |
| Return the value. | |
| void | set (uint32_t value) |
| void | unset (void) |
The value of one dimension in a tensor shape.
Definition at line 29 of file Dimension.h.
|
default |
Construct an "unknown" dimension.
|
inline |
Return whether the value is known (or not)
Definition at line 47 of file Dimension.h.
Referenced by loco::element_count(), luci::is_same_shape(), loco::operator<<(), loco::operator==(), loco::operator==(), loco::operator==(), luci::compute::tflite_shape(), exo::to_shape_description(), and luci::to_shape_description().
Definition at line 53 of file Dimension.h.
References value().
Referenced by Dimension(), luci::get_channel_dim_index(), and luci::DynamicBatchToSingleBatchPass::run().
Definition at line 59 of file Dimension.h.
Referenced by moco::tensor_shape().
Return the value.
Definition at line 51 of file Dimension.h.
Referenced by luci::cal_minmax_per_channel(), luci::cal_offset(), Dimension(), loco::element_count(), moco::PlaneInference::infer(), luci::is_same_shape(), loco::operator<<(), loco::operator<<(), loco::operator==(), loco::operator==(), loco::operator==(), luci::compute::DepthwiseConv2D::prepare(), luci::compute::FullyConnected::prepare(), set(), moco::TensorPackEnumerator::start(), luci::compute::tflite_shape(), exo::to_shape_description(), exo::to_shape_description(), exo::to_shape_description(), exo::to_shape_description(), exo::to_shape_description(), exo::to_shape_description(), luci::to_shape_description(), moco::valid_shape_for_constfold_binary_op(), and moco::window_of().