ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::sinf::StridedSliceContext Struct Reference
Collaboration diagram for luci::sinf::StridedSliceContext:

Public Member Functions

 StridedSliceContext (const luci::CircleStridedSlice *node)
 

Data Fields

StridedSliceParams params
 
luci::CircleNodeinput = nullptr
 
luci::CircleConstbegin = nullptr
 
luci::CircleConstend = nullptr
 
luci::CircleConststrides = nullptr
 
loco::TensorShape effective_input_shape
 
int64_t input_dims = 0
 

Detailed Description

Definition at line 79 of file CircleStridedSlice.cpp.

Constructor & Destructor Documentation

◆ StridedSliceContext()

luci::sinf::StridedSliceContext::StridedSliceContext ( const luci::CircleStridedSlice node)
inline

Definition at line 81 of file CircleStridedSlice.cpp.

82 {
83 // check overflow issues
84 assert(static_cast<int16_t>(node->begin_mask()) == node->begin_mask());
85 assert(static_cast<int16_t>(node->ellipsis_mask()) == node->ellipsis_mask());
86 assert(static_cast<int16_t>(node->end_mask()) == node->end_mask());
87 assert(static_cast<int16_t>(node->new_axis_mask()) == node->new_axis_mask());
88 assert(static_cast<int16_t>(node->shrink_axis_mask()) == node->shrink_axis_mask());
89
92 params.end_mask = node->end_mask();
95
96 input = loco::must_cast<luci::CircleNode *>(node->input());
97 begin = loco::must_cast<luci::CircleConst *>(node->begin());
98 end = loco::must_cast<luci::CircleConst *>(node->end());
99 strides = loco::must_cast<luci::CircleConst *>(node->strides());
100
101 loco::TensorShape input_shape = circle_shape(input);
102 input_dims = static_cast<int64_t>(input_shape.rank());
103 }
uint32_t rank(void) const
Definition TensorShape.h:35
loco::Node * input(void) const
loco::Node * begin(void) const
loco::Node * strides(void) const
loco::Node * end(void) const
loco::TensorShape circle_shape(const luci::CircleNode *node)

References luci::CircleStridedSlice::begin(), begin, luci::CircleStridedSlice::begin_mask(), luci::sinf::StridedSliceParams::begin_mask, luci::sinf::circle_shape(), luci::CircleStridedSlice::ellipsis_mask(), luci::sinf::StridedSliceParams::ellipsis_mask, luci::CircleStridedSlice::end(), end, luci::CircleStridedSlice::end_mask(), luci::sinf::StridedSliceParams::end_mask, luci::CircleStridedSlice::input(), input, input_dims, luci::CircleStridedSlice::new_axis_mask(), luci::sinf::StridedSliceParams::new_axis_mask, params, loco::TensorShape::rank(), luci::CircleStridedSlice::shrink_axis_mask(), luci::sinf::StridedSliceParams::shrink_axis_mask, luci::CircleStridedSlice::strides(), and strides.

Field Documentation

◆ begin

luci::CircleConst* luci::sinf::StridedSliceContext::begin = nullptr

◆ effective_input_shape

loco::TensorShape luci::sinf::StridedSliceContext::effective_input_shape

◆ end

luci::CircleConst* luci::sinf::StridedSliceContext::end = nullptr

◆ input

luci::CircleNode* luci::sinf::StridedSliceContext::input = nullptr

◆ input_dims

int64_t luci::sinf::StridedSliceContext::input_dims = 0

◆ params

StridedSliceParams luci::sinf::StridedSliceContext::params

◆ strides

luci::CircleConst* luci::sinf::StridedSliceContext::strides = nullptr

The documentation for this struct was generated from the following file: