Home
last modified time | relevance | path

Searched refs:begin_index (Results 1 – 19 of 19) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/zephyr_riscv/src/
Daccelerometer_handler.cc25 int begin_index = 0; variable
71 bufx[begin_index] = (float)sensor_value_to_double(&accel[0]); in ReadAccelerometer()
72 bufy[begin_index] = (float)sensor_value_to_double(&accel[1]); in ReadAccelerometer()
73 bufz[begin_index] = (float)sensor_value_to_double(&accel[2]); in ReadAccelerometer()
74 begin_index++; in ReadAccelerometer()
75 if (begin_index >= BUFLEN) begin_index = 0; in ReadAccelerometer()
78 if (initial && begin_index >= 100) { in ReadAccelerometer()
88 int ring_index = begin_index + sample - length / 3; in ReadAccelerometer()
Daccelerometer_handler.h24 extern int begin_index;
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/himax_we1_evb/
Daccelerometer_handler.cc20 int begin_index = 0; variable
61 save_data[begin_index++] = norm_x * 1000; in ReadAccelerometer()
62 save_data[begin_index++] = norm_y * 1000; in ReadAccelerometer()
63 save_data[begin_index++] = norm_z * 1000; in ReadAccelerometer()
66 if (begin_index >= ring_buffer_size) begin_index = 0; in ReadAccelerometer()
70 if (pending_initial_data && begin_index >= 200) { in ReadAccelerometer()
81 int ring_array_index = begin_index + i - length; in ReadAccelerometer()
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/arduino/
Daccelerometer_handler.cc32 int begin_index = 0; variable
102 save_data[begin_index++] = norm_x * 1000; in ReadAccelerometer()
103 save_data[begin_index++] = norm_y * 1000; in ReadAccelerometer()
104 save_data[begin_index++] = norm_z * 1000; in ReadAccelerometer()
108 if (begin_index >= 600) { in ReadAccelerometer()
109 begin_index = 0; in ReadAccelerometer()
120 if (pending_initial_data && begin_index >= 200) { in ReadAccelerometer()
131 int ring_array_index = begin_index + i - length; in ReadAccelerometer()
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/
Daccelerometer_handler.cc18 int begin_index = 0; variable
26 begin_index += 3; in ReadAccelerometer()
28 if (begin_index >= 600) begin_index = 0; in ReadAccelerometer()
32 if (begin_index > 300) { in ReadAccelerometer()
Daccelerometer_handler.h24 extern int begin_index;
Dmain_functions.cc114 begin_index); in loop()
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/sparkfun_edge/
Daccelerometer_handler.cc41 int begin_index = 0; variable
188 save_data[begin_index++] = in ReadAccelerometer()
190 save_data[begin_index++] = in ReadAccelerometer()
192 save_data[begin_index++] = in ReadAccelerometer()
195 if (begin_index >= 600) begin_index = 0; in ReadAccelerometer()
200 if (pending_initial_data && begin_index >= 200) { in ReadAccelerometer()
211 int ring_array_index = begin_index + i - length; in ReadAccelerometer()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dstrided_slice_op.cc145 xla::XlaOp begin_index, end_index; in EmitDynamicSlice() local
160 begin_index = zero; in EmitDynamicSlice()
162 begin_index = xla::Slice(ctx->Input("begin"), {sparse_index}, in EmitDynamicSlice()
164 begin_index = xla::Reshape(begin_index, {}); in EmitDynamicSlice()
165 auto index_negative = xla::Lt(begin_index, zero); in EmitDynamicSlice()
166 auto wrapped_index = xla::Add(dim_size, begin_index); in EmitDynamicSlice()
168 begin_index = xla::Select(index_negative, wrapped_index, begin_index); in EmitDynamicSlice()
170 start_indices.push_back(begin_index); in EmitDynamicSlice()
182 xla::Max(xla::Sub(end_index, begin_index), zero)); in EmitDynamicSlice()
447 xla::XlaOp begin_index; in CompileAsDynamicUpdateSlice() local
[all …]
/external/libchrome/base/i18n/
Drtl.cc364 size_t begin_index = 0; in UnadjustStringForLocaleDirection() local
365 char16 begin = text->at(begin_index); in UnadjustStringForLocaleDirection()
368 ++begin_index; in UnadjustStringForLocaleDirection()
379 text->substr(begin_index, end_index - begin_index + 1); in UnadjustStringForLocaleDirection()
482 size_t begin_index = 0; in StripWrappingBidiControlCharacters() local
483 char16 begin = text[begin_index]; in StripWrappingBidiControlCharacters()
488 ++begin_index; in StripWrappingBidiControlCharacters()
492 return text.substr(begin_index, end_index - begin_index + 1); in StripWrappingBidiControlCharacters()
/external/libchrome/base/strings/
Dstring_split.cc143 for (size_type begin_index = 0, end_index = 0; end_index != Piece::npos; in SplitStringUsingSubstrT() local
144 begin_index = end_index + delimiter.size()) { in SplitStringUsingSubstrT()
145 end_index = input.find(delimiter, begin_index); in SplitStringUsingSubstrT()
147 ? input.substr(begin_index) in SplitStringUsingSubstrT()
148 : input.substr(begin_index, end_index - begin_index); in SplitStringUsingSubstrT()
/external/webrtc/modules/audio_coding/neteq/
Daudio_vector.h130 size_t begin_index, in WrapIndex() argument
133 RTC_DCHECK_LT(begin_index, capacity); in WrapIndex()
134 size_t ix = begin_index + index; in WrapIndex()
/external/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
DCPlusPlusNameParser.h69 size_t begin_index = 0; member
73 Range(size_t begin, size_t end) : begin_index(begin), end_index(end) { in Range()
77 size_t size() const { return end_index - begin_index; } in size()
DCPlusPlusNameParser.cpp637 assert(range.begin_index < range.end_index); in GetTextForRange()
638 assert(range.begin_index < m_tokens.size()); in GetTextForRange()
640 clang::Token &first_token = m_tokens[range.begin_index]; in GetTextForRange()
/external/flatbuffers/grpc/src/compiler/
Djava_generator.cc150 string::size_type begin_index, end_index; in GrpcSplitStringToIteratorUsing() local
151 begin_index = full.find_first_not_of(delim); in GrpcSplitStringToIteratorUsing()
152 while (begin_index != string::npos) { in GrpcSplitStringToIteratorUsing()
153 end_index = full.find_first_of(delim, begin_index); in GrpcSplitStringToIteratorUsing()
155 *result++ = full.substr(begin_index); in GrpcSplitStringToIteratorUsing()
158 *result++ = full.substr(begin_index, (end_index - begin_index)); in GrpcSplitStringToIteratorUsing()
159 begin_index = full.find_first_not_of(delim, end_index); in GrpcSplitStringToIteratorUsing()
/external/protobuf/src/google/protobuf/stubs/
Dstrutil.cc216 string::size_type begin_index, end_index; in SplitStringToIteratorUsing() local
217 begin_index = full.find_first_not_of(delim); in SplitStringToIteratorUsing()
218 while (begin_index != string::npos) { in SplitStringToIteratorUsing()
219 end_index = full.find_first_of(delim, begin_index); in SplitStringToIteratorUsing()
221 *result++ = full.substr(begin_index); in SplitStringToIteratorUsing()
224 *result++ = full.substr(begin_index, (end_index - begin_index)); in SplitStringToIteratorUsing()
225 begin_index = full.find_first_not_of(delim, end_index); in SplitStringToIteratorUsing()
253 string::size_type begin_index, end_index; in SplitStringToIteratorAllowEmpty() local
254 begin_index = 0; in SplitStringToIteratorAllowEmpty()
257 end_index = full.find_first_of(delim, begin_index); in SplitStringToIteratorAllowEmpty()
[all …]
/external/grpc-grpc-java/compiler/src/java_plugin/cpp/
Djava_generator.cpp192 string::size_type begin_index, end_index; in GrpcSplitStringToIteratorUsing() local
193 begin_index = full.find_first_not_of(delim); in GrpcSplitStringToIteratorUsing()
194 while (begin_index != string::npos) { in GrpcSplitStringToIteratorUsing()
195 end_index = full.find_first_of(delim, begin_index); in GrpcSplitStringToIteratorUsing()
197 *result++ = full.substr(begin_index); in GrpcSplitStringToIteratorUsing()
200 *result++ = full.substr(begin_index, (end_index - begin_index)); in GrpcSplitStringToIteratorUsing()
201 begin_index = full.find_first_not_of(delim, end_index); in GrpcSplitStringToIteratorUsing()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Darithmetic_optimizer.cc3382 int begin_index = -1; in GetStridedSliceAxis() local
3387 if (begin_index != -1) { in GetStridedSliceAxis()
3391 begin_index = i; in GetStridedSliceAxis()
3410 if (begin_index == -1 && end_index == -1) return Status::OK(); in GetStridedSliceAxis()
3411 if (begin_index != -1 && end_index != -1 && begin_index != end_index) { in GetStridedSliceAxis()
3415 const int slice_axis = (begin_index == -1) ? end_index : begin_index; in GetStridedSliceAxis()
3420 *slice_start_value = (begin_index == -1) ? 0 : begin_value; in GetStridedSliceAxis()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_n_z.cc1107 int64_t begin_index = raw_begin_index.getSExtValue(); in Verify() local
1115 slice_size = input_size - begin_index; in Verify()
1124 if (begin_index < 0 || in Verify()
1125 (input_size != -1 && begin_index + slice_size > input_size)) { in Verify()