Home
last modified time | relevance | path

Searched refs:data_index (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/examples/tutorials/word2vec/
Dword2vec_basic.py38 data_index = 0 variable
128 global data_index
135 if data_index + span > len(data):
136 data_index = 0
137 buffer.extend(data[data_index:data_index + span])
138 data_index += span
145 if data_index == len(data):
147 data_index = span
149 buffer.append(data[data_index])
150 data_index += 1
[all …]
/external/markdown/markdown/
Dpreprocessors.py129 right_tag, data_index = self._get_right_tag(left_tag, block)
134 right_tag, data_index = self._get_right_tag(left_tag, block)
137 if data_index < len(block) \
139 text.insert(0, block[data_index:])
140 block = block[:data_index]
174 right_tag, data_index = self._get_right_tag(left_tag, block)
/external/tensorflow/tensorflow/examples/speech_commands/
Dinput_data.py278 self.data_index = {'validation': [], 'testing': [], 'training': []}
295 self.data_index[set_index].append({'label': word, 'file': wav_path})
307 silence_wav_path = self.data_index['training'][0]['file']
309 set_size = len(self.data_index[set_index])
312 self.data_index[set_index].append({
319 self.data_index[set_index].extend(unknown_index[set_index][:unknown_size])
322 random.shuffle(self.data_index[set_index])
507 return len(self.data_index[mode])
537 candidates = self.data_index[mode]
653 candidates = self.data_index[mode]
Dinput_data_test.py108 self.assertTrue("training" in audio_processor.data_index)
109 self.assertTrue("validation" in audio_processor.data_index)
110 self.assertTrue("testing" in audio_processor.data_index)
/external/tensorflow/tensorflow/core/framework/
Dtensor.cc1025 int64 limit, int shape_size, const T* data, int64* data_index, in PrintOneDim() argument
1027 if (*data_index >= limit) return; in PrintOneDim()
1032 if (*data_index >= limit) { in PrintOneDim()
1040 strings::StrAppend(result, PrintOneElement(data[(*data_index)++], false)); in PrintOneDim()
1047 if (*data_index < limit) { in PrintOneDim()
1052 PrintOneDim(dim_index + 1, shape, limit, shape_size, data, data_index, in PrintOneDim()
1054 if (*data_index < limit || flag) { in PrintOneDim()
1079 int64 data_index, string* result) { in PrintOneDimV2() argument
1083 strings::StrAppend(result, PrintOneElement(data[data_index], true)); in PrintOneDimV2()
1104 data_index + elements_per_iter * i, result); in PrintOneDimV2()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_enum.cc346 int data_index = 0; in GenerateMethods() local
348 format(" { {$classname$_names + $1$, $2$}, $3$ },\n", data_index, in GenerateMethods()
354 data_index += p.first.size(); in GenerateMethods()
/external/libgav1/libgav1/src/utils/
Dentropy_decoder.cc981 size_t data_index = data_index_; in PopulateBits() local
995 for (; shift >= 0 && data_index < size_; shift -= 8) { in PopulateBits()
996 window_diff ^= static_cast<WindowSize>(data_[data_index++]) << shift; in PopulateBits()
999 if (data_index >= size_) { in PopulateBits()
1003 data_index_ = data_index; in PopulateBits()
/external/v8/src/ic/
Daccessor-assembler.h180 int data_index);
Daccessor-assembler.cc34 TNode<DataHandler> handler, int data_index) { in LoadHandlerDataField() argument
44 switch (data_index) { in LoadHandlerDataField()