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 |
|
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::sinf::pad_shape(), luci::compute::tflite_shape(), exo::to_shape_description(), luci::to_shape_description(), luci::sinf::Algorithm::visit(), and luci::sinf::Algorithm::visit().
|
inline |
Definition at line 53 of file Dimension.h.
References value().
Referenced by Dimension(), luci::get_channel_dim_index(), luci::DynamicBatchToSingleBatchPass::run(), and luci::sinf::Algorithm::visit().
|
inline |
Definition at line 59 of file Dimension.h.
Referenced by moco::tensor_shape(), luci::sinf::Algorithm::visit(), and luci::sinf::Algorithm::visit().
|
inline |
Return the value.
Definition at line 51 of file Dimension.h.
Referenced by luci::sinf::BuildStridedSliceParams(), luci::cal_offset(), Dimension(), loco::element_count(), moco::PlaneInference::fill(), moco::PlaneInference::infer(), luci::is_same_shape(), moco::Padding2DInference::operator()(), loco::operator<<(), loco::operator<<(), loco::operator<<(), loco::operator<<(), loco::operator==(), loco::operator==(), loco::operator==(), luci::sinf::pad_shape(), luci::compute::DepthwiseConv2D::prepare(), luci::compute::FullyConnected::prepare(), set(), moco::TensorPackEnumerator::start(), luci::sinf::StartForAxis(), luci::sinf::StopForAxis(), 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(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), and moco::window_of().