Home
last modified time | relevance | path

Searched refs:curr_pos (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/core/lib/io/
Drecord_reader.cc171 int64 curr_pos = input_stream_->Tell(); in PositionInputStream() local
173 if (curr_pos > desired_pos || curr_pos < 0 /* EOF */ || in PositionInputStream()
174 (curr_pos == desired_pos && last_read_failed_)) { in PositionInputStream()
178 } else if (curr_pos < desired_pos) { in PositionInputStream()
179 TF_RETURN_IF_ERROR(input_stream_->SkipNBytes(desired_pos - curr_pos)); in PositionInputStream()
/external/libtextclassifier/native/tensorflow_models/seq_flow_lite/tflite_ops/
Dlayer_norm.cc122 int* curr_pos) { in ValidIndex() argument
127 assert(curr_pos != nullptr); in ValidIndex()
129 int current_val = curr_pos[idx] + 1; in ValidIndex()
132 curr_pos[idx] = 0; in ValidIndex()
134 curr_pos[idx] = current_val; in ValidIndex()
144 const int* curr_pos, const int* axis, const int axis_size) { in GetOffset() argument
147 assert(curr_pos != nullptr); in GetOffset()
160 if (!is_axis) offset = offset * input_dims[idx] + curr_pos[idx]; in GetOffset()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dmodel_pruner.cc366 int curr_pos = 0; in RewriteIdentityNAndInputsOutputs() local
372 mutable_inputs->SwapElements(i, curr_pos); in RewriteIdentityNAndInputsOutputs()
373 mutable_types->SwapElements(i, curr_pos); in RewriteIdentityNAndInputsOutputs()
374 curr_pos++; in RewriteIdentityNAndInputsOutputs()
377 mutable_types->Truncate(curr_pos); in RewriteIdentityNAndInputsOutputs()
380 mutable_inputs->SwapElements(i, curr_pos++); in RewriteIdentityNAndInputsOutputs()
382 mutable_inputs->DeleteSubrange(curr_pos, num_inputs - curr_pos); in RewriteIdentityNAndInputsOutputs()
/external/stressapptest/src/
Ddisk_blocks.cc106 int curr_pos = it->second->pos; in RemoveBlock() local
114 pos_to_addr_[curr_pos] = pos_to_addr_[last_pos]; in RemoveBlock()
115 last_it->second->pos = curr_pos; in RemoveBlock()
/external/protobuf/src/google/protobuf/util/internal/
Dproto_writer.cc778 int curr_pos = 0; in WriteRootMessage() local
794 size_insert_.front().pos - curr_pos < num_bytes) { in WriteRootMessage()
795 num_bytes = size_insert_.front().pos - curr_pos; in WriteRootMessage()
801 curr_pos += num_bytes; in WriteRootMessage()
806 if (!size_insert_.empty() && curr_pos == size_insert_.front().pos) { in WriteRootMessage()
/external/tensorflow/tensorflow/core/grappler/
Dmutable_graph_view.cc1065 int curr_pos = 0; in RemoveRegularFaninInternal() local
1076 fanouts_set->insert({node, curr_pos}); in RemoveRegularFaninInternal()
1078 mutable_inputs->SwapElements(i, curr_pos); in RemoveRegularFaninInternal()
1079 ++curr_pos; in RemoveRegularFaninInternal()
1082 ++curr_pos; in RemoveRegularFaninInternal()
1087 const int last_regular_input_port = curr_pos - 1; in RemoveRegularFaninInternal()
1093 if (curr_pos < i) { in RemoveRegularFaninInternal()
1095 mutable_inputs->DeleteSubrange(curr_pos, i - curr_pos); in RemoveRegularFaninInternal()
/external/tensorflow/tensorflow/core/grappler/utils/
Dgraph_view.cc1455 int curr_pos = num_nodes - 1; in SortTopologically() local
1512 int* curr_pos, std::vector<Edge>* edges_in_cycle) { in SortTopologically() argument
1534 (*order)[curr_index] = *curr_pos; in SortTopologically()
1536 --(*curr_pos); in SortTopologically()
1552 reversed_postorder_dfs(node, &order, &traversal_state, &curr_pos, in SortTopologically()
1571 if (curr_pos != kTopologicalSortDone) { in SortTopologically()
1580 reversed_postorder_dfs(node, &order, &traversal_state, &curr_pos, in SortTopologically()
/external/python/cpython3/Lib/
Dzipfile.py1048 curr_pos = self.tell()
1052 new_pos = curr_pos + offset
1065 read_offset = new_pos - curr_pos
/external/python/cpython2/Lib/lib-tk/test/test_ttk/
Dtest_widgets.py667 curr_pos = self.paned.sashpos(0)
669 self.assertNotEqual(curr_pos, self.paned.sashpos(0))
/external/python/cpython3/Lib/tkinter/test/test_ttk/
Dtest_widgets.py668 curr_pos = self.paned.sashpos(0)
670 self.assertNotEqual(curr_pos, self.paned.sashpos(0))