ONE - On-device Neural Engine
|
Data Structures | |
class | Algorithm |
struct | Rule |
struct | StridedSliceContext |
struct | StridedSliceParams |
class | TensorShapeExpander |
Create a higher-rank TensorShape following NumPy broadcasting semantics. More... | |
Functions | |
loco::TensorShape | circle_shape (const luci::CircleNode *node) |
loco::TensorShape | broadcast_shape (const loco::TensorShape &x, const loco::TensorShape &y) |
loco::TensorShape | pad_shape (const loco::TensorShape &input_shape, const luci::CircleNode *paddings) |
int | Clamp (const int32_t v, const int32_t lo, const int32_t hi) |
int64_t | StartForAxis (const StridedSliceParams ¶ms, const loco::TensorShape &input_shape, int64_t axis) |
int64_t | StopForAxis (const StridedSliceParams ¶ms, const loco::TensorShape &input_shape, int64_t axis, int64_t start_for_axis) |
StridedSliceParams | BuildStridedSliceParams (StridedSliceContext *op_context) |
Variables | |
const int | kMaxDim = 5 |
const loco::DataType | S32 = loco::DataType::S32 |
loco::TensorShape luci::sinf::broadcast_shape | ( | const loco::TensorShape & | x, |
const loco::TensorShape & | y | ||
) |
Definition at line 152 of file CircleShapeInferenceHelper.cpp.
References output_shape.
Referenced by luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), and luci::sinf::Algorithm::visit().
StridedSliceParams luci::sinf::BuildStridedSliceParams | ( | StridedSliceContext * | op_context | ) |
Definition at line 251 of file CircleStridedSlice.cpp.
References luci::CircleConst::at(), luci::sinf::StridedSliceContext::begin, begin_count, luci::sinf::StridedSliceParams::begin_mask, circle_shape(), loco::TensorShape::dim(), luci::sinf::StridedSliceContext::effective_input_shape, luci::sinf::StridedSliceParams::ellipsis_mask, luci::sinf::StridedSliceContext::end, luci::sinf::StridedSliceParams::end_mask, luci::sinf::StridedSliceContext::input, luci::sinf::StridedSliceContext::input_dims, luci::sinf::StridedSliceParams::new_axis_mask, luci::sinf::StridedSliceContext::params, loco::TensorShape::rank(), S32, luci::sinf::StridedSliceParams::shrink_axis_mask, luci::sinf::StridedSliceParams::start_indices, luci::sinf::StridedSliceParams::start_indices_count, luci::sinf::StridedSliceParams::stop_indices, luci::sinf::StridedSliceParams::stop_indices_count, luci::sinf::StridedSliceParams::strides, luci::sinf::StridedSliceContext::strides, luci::sinf::StridedSliceParams::strides_count, and loco::Dimension::value().
Referenced by luci::sinf::Algorithm::visit().
loco::TensorShape luci::sinf::circle_shape | ( | const luci::CircleNode * | node | ) |
Definition at line 143 of file CircleShapeInferenceHelper.cpp.
References loco::TensorShape::dim(), and loco::TensorShape::rank().
Referenced by BuildStridedSliceParams(), luci::sinf::Rule::infer(), luci::shape_get(), luci::sinf::StridedSliceContext::StridedSliceContext(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), luci::sinf::Algorithm::visit(), and luci::sinf::Algorithm::visit().
|
inline |
Definition at line 116 of file CircleStridedSlice.cpp.
References LUCI_ASSERT.
Referenced by StartForAxis(), and StopForAxis().
loco::TensorShape luci::sinf::pad_shape | ( | const loco::TensorShape & | input_shape, |
const luci::CircleNode * | paddings | ||
) |
Definition at line 164 of file CircleShapeInferenceHelper.cpp.
References loco::TensorShape::dim(), INTERNAL_EXN, loco::Dimension::known(), LUCI_ASSERT, output_shape, loco::TensorShape::rank(), S32, and loco::Dimension::value().
Referenced by luci::sinf::Algorithm::visit().
|
inline |
Definition at line 129 of file CircleStridedSlice.cpp.
References luci::sinf::StridedSliceParams::begin_mask, Clamp(), loco::TensorShape::dim(), luci::sinf::StridedSliceParams::start_indices, luci::sinf::StridedSliceParams::strides, and loco::Dimension::value().
Referenced by luci::sinf::Algorithm::visit().
|
inline |
Definition at line 186 of file CircleStridedSlice.cpp.
References Clamp(), loco::TensorShape::dim(), luci::sinf::StridedSliceParams::end_mask, luci::sinf::StridedSliceParams::shrink_axis_mask, luci::sinf::StridedSliceParams::stop_indices, luci::sinf::StridedSliceParams::strides, and loco::Dimension::value().
Referenced by luci::sinf::Algorithm::visit().
const int luci::sinf::kMaxDim = 5 |
Definition at line 59 of file CircleStridedSlice.cpp.
const loco::DataType luci::sinf::S32 = loco::DataType::S32 |
Definition at line 61 of file CircleStridedSlice.cpp.
Referenced by BuildStridedSliceParams(), pad_shape(), luci::sinf::Algorithm::visit(), and luci::sinf::Algorithm::visit().