Home
last modified time | relevance | path

Searched refs:IteratorContext (Results 1 – 25 of 95) sorted by relevance

1234

/external/tensorflow/tensorflow/core/kernels/data/
Dmodel_dataset_op.cc107 Status Initialize(IteratorContext* ctx) override { in Initialize()
108 IteratorContext::Params params(ctx); in Initialize()
111 IteratorContext(std::move(params)), prefix(), &input_impl_); in Initialize()
114 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
117 IteratorContext::Params params(ctx); in GetNextInternal()
123 return input_impl_->GetNext(IteratorContext(std::move(params)), in GetNextInternal()
129 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
140 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
148 Status EnsureOptimizeThreadStarted(IteratorContext* ctx) in EnsureOptimizeThreadStarted()
151 std::shared_ptr<IteratorContext> new_ctx = in EnsureOptimizeThreadStarted()
[all …]
Drepeat_dataset_op.cc109 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
118 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
126 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
137 Status Initialize(IteratorContext* ctx) override { in Initialize()
141 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
166 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
183 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
208 Status Initialize(IteratorContext* ctx) override { in Initialize()
213 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
243 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
[all …]
Dtake_dataset_op.cc46 Status GetNextInternal(IteratorContext* ctx, std::vector<Tensor>* out_tensors, in GetNextInternal()
54 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
63 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
74 Status Initialize(IteratorContext* ctx) override { in Initialize()
78 Status GetNextInternal(IteratorContext* ctx, std::vector<Tensor>* out_tensors, in GetNextInternal()
101 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
118 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dcache_dataset_ops.cc126 Status Initialize(IteratorContext* ctx) override { in Initialize()
131 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
140 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
150 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
207 Status Initialize(IteratorContext* ctx) override { in Initialize()
211 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
256 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
296 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
447 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
488 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
[all …]
Dskip_dataset_op.cc96 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
105 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
114 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
125 Status Initialize(IteratorContext* ctx) override { in Initialize()
129 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
167 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
184 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dgraph_rewrite_dataset.cc201 Status Initialize(IteratorContext* ctx) override { in Initialize()
202 IteratorContext::Params params(ctx); in Initialize()
206 IteratorContext(std::move(params)), prefix(), &input_impl_); in Initialize()
209 Status GetNextInternal(IteratorContext* ctx, std::vector<Tensor>* out_tensors, in GetNextInternal()
211 IteratorContext::Params params(ctx); in GetNextInternal()
214 return input_impl_->GetNext(IteratorContext(std::move(params)), out_tensors, in GetNextInternal()
220 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
230 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dparallel_map_iterator.cc75 Status Initialize(IteratorContext* ctx) override { in Initialize()
85 Status GetNextInternal(IteratorContext* ctx, std::vector<Tensor>* out_tensors, in GetNextInternal()
105 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
144 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
190 void EnsureRunnerThreadStarted(IteratorContext* ctx) in EnsureRunnerThreadStarted()
193 auto ctx_copy = std::make_shared<IteratorContext>(*ctx); in EnsureRunnerThreadStarted()
200 void CallCompleted(const std::shared_ptr<IteratorContext>& ctx, in CallCompleted()
217 void CallFunction(const std::shared_ptr<IteratorContext>& ctx, in CallFunction()
241 Status ProcessResult(IteratorContext* ctx, in ProcessResult()
270 void RunnerThread(const std::shared_ptr<IteratorContext>& ctx) in RunnerThread()
Dprefetch_dataset_op.cc101 Status Initialize(IteratorContext* ctx) override { in Initialize()
105 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
154 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
185 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
231 Status Consume(IteratorContext* ctx, std::vector<Tensor>* out_tensors, in Consume()
266 Status EnsurePrefetchThreadStarted(IteratorContext* ctx) in EnsurePrefetchThreadStarted()
269 std::shared_ptr<IteratorContext> new_ctx = in EnsurePrefetchThreadStarted()
270 std::make_shared<IteratorContext>(*ctx); in EnsurePrefetchThreadStarted()
281 void PrefetchThread(const std::shared_ptr<IteratorContext>& ctx) { in PrefetchThread()
Dfilter_dataset_op.cc37 std::function<Status(IteratorContext*, InstantiatedCapturedFunction*,
58 filter_pred = [](IteratorContext* ctx, in MakeDataset()
76 IteratorContext* ctx, in MakeDataset()
173 Status Initialize(IteratorContext* ctx) override { in Initialize()
180 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
247 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
265 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dcaptured_function.h57 Status Run(IteratorContext* ctx, std::vector<Tensor>&& args,
63 Status RunWithBorrowedArgs(IteratorContext* ctx,
79 void RunAsync(IteratorContext* ctx, std::vector<Tensor>&& args,
144 Status Instantiate(IteratorContext* ctx,
Dmap_dataset_op.cc33 std::function<Status(IteratorContext*, InstantiatedCapturedFunction*,
57 map_func = [](IteratorContext* ctx, in MakeDataset()
67 IteratorContext* ctx, in MakeDataset()
197 Status Initialize(IteratorContext* ctx) override { in Initialize()
204 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
241 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
251 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dfilter_by_component_dataset_op.cc106 Status Initialize(IteratorContext* ctx) override { in Initialize()
110 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
146 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
156 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dshard_dataset_op.cc116 Status Initialize(IteratorContext* ctx) override { in Initialize()
120 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
147 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
165 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dthreadpool_dataset_op.cc194 Status Initialize(IteratorContext* ctx) override { in Initialize()
196 IteratorContext(CreateParams(ctx)), prefix(), &input_impl_); in Initialize()
199 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
202 return input_impl_->GetNext(IteratorContext(CreateParams(ctx)), in GetNextInternal()
208 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
214 IteratorContext::Params CreateParams(IteratorContext* ctx) { in CreateParams()
216 IteratorContext::Params params(ctx); in CreateParams()
302 Status Initialize(IteratorContext* ctx) override { in Initialize()
306 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
309 IteratorContext::Params params(ctx); in GetNextInternal()
[all …]
Dstats_dataset_ops.cc98 Status Initialize(IteratorContext* ctx) override { in Initialize()
102 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
119 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
130 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
208 Status Initialize(IteratorContext* ctx) override { in Initialize()
212 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
231 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
242 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dtake_while_dataset_op.cc36 std::function<Status(IteratorContext*, InstantiatedCapturedFunction*,
57 loop_pred = [](IteratorContext* ctx, in MakeDataset()
75 IteratorContext* ctx, in MakeDataset()
174 Status Initialize(IteratorContext* ctx) override { in Initialize()
181 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
204 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
219 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dset_stats_aggregator_dataset_op.cc159 Status Initialize(IteratorContext* ctx) override { in Initialize()
163 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
169 IteratorContext::Params params(ctx); in GetNextInternal()
174 IteratorContext iter_ctx(std::move(params)); in GetNextInternal()
180 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
190 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dnon_serializable_dataset_op.cc86 Status Initialize(IteratorContext* ctx) override { in Initialize()
90 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
98 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
107 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dsleep_dataset_op.cc97 Status Initialize(IteratorContext* ctx) override { in Initialize()
101 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
112 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
121 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dchoose_fastest_branch_dataset_op.cc81 Status Initialize(IteratorContext* ctx) override { in Initialize()
91 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
100 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
108 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
326 Status Initialize(IteratorContext* ctx) override { in Initialize()
342 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
379 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
407 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
433 Status GetNextFromExperiment(IteratorContext* ctx, in GetNextFromExperiment()
471 Status MakeCurrentIterator(IteratorContext* ctx, int64 branch_index, in MakeCurrentIterator()
Dignore_errors_dataset_op.cc81 Status Initialize(IteratorContext* ctx) override { in Initialize()
85 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
109 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
124 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
Dmap_and_batch_dataset_op.cc52 std::function<void(IteratorContext*, InstantiatedCapturedFunction*,
95 map_func = [](IteratorContext* ctx, in MakeDataset()
107 IteratorContext* ctx, in MakeDataset()
280 Status Initialize(IteratorContext* ctx) override { in Initialize()
291 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
315 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
340 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
395 void CallCompleted(const std::shared_ptr<IteratorContext>& ctx, in CallCompleted()
411 void CallFunction(std::shared_ptr<IteratorContext> ctx, in CallFunction()
513 void EnsureRunnerThreadStarted(IteratorContext* ctx) in EnsureRunnerThreadStarted()
[all …]
Dassert_next_dataset_op.cc100 Status Initialize(IteratorContext* ctx) override { in Initialize()
120 Status GetNextInternal(IteratorContext* ctx, in GetNextInternal()
128 IteratorContext* ctx, model::Node::Args args) const override { in CreateNode()
138 Status RestoreInternal(IteratorContext* ctx, in RestoreInternal()
/external/tensorflow/tensorflow/core/framework/
Ddataset.h279 class IteratorContext {
282 explicit Params(IteratorContext* ctx) in Params()
350 explicit IteratorContext(IteratorContext* ctx) : params_(Params{ctx}) {} in IteratorContext() function
352 explicit IteratorContext(OpKernelContext* ctx) : params_(Params{ctx}) {} in IteratorContext() function
354 explicit IteratorContext(Params params) : params_(std::move(params)) {} in IteratorContext() function
460 virtual Status GetNext(IteratorContext* ctx, std::vector<Tensor>* out_tensors,
463 Status GetNext(IteratorContext&& ctx, std::vector<Tensor>* out_tensors, in GetNext()
484 virtual Status Initialize(IteratorContext* ctx) { return Status::OK(); } in Initialize()
492 virtual Status Restore(IteratorContext* ctx, IteratorStateReader* reader) { in Restore()
499 IteratorContext* ctx, model::Node::Args args) const = 0;
[all …]
/external/tensorflow/tensorflow/core/common_runtime/data/
Dstandalone.cc39 Iterator::Iterator(IteratorBase* iterator, IteratorContext* ctx) in Iterator()
87 std::unique_ptr<IteratorContext> ctx; in MakeIterator()
97 IteratorContext::Params params(&op_ctx); in MakeIterator()
99 ctx = MakeUnique<IteratorContext>(std::move(params)); in MakeIterator()

1234