MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CreateIteratorContext

Method CreateIteratorContext

tensorflow/core/kernels/data/dataset_test_base.cc:376–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376Status DatasetOpsTestBase::CreateIteratorContext(
377 OpKernelContext* const op_context,
378 std::unique_ptr<IteratorContext>* iterator_context) {
379 IteratorContext::Params params(op_context);
380 params.resource_mgr = op_context->resource_manager();
381 function_handle_cache_ = absl::make_unique<FunctionHandleCache>(flr_);
382 params.function_handle_cache = function_handle_cache_.get();
383 params.cancellation_manager = cancellation_manager_.get();
384 *iterator_context = absl::make_unique<IteratorContext>(params);
385 return Status::OK();
386}
387
388Status DatasetOpsTestBase::GetDatasetFromContext(OpKernelContext* context,
389 int output_index,

Callers

nothing calls this directly

Calls 2

resource_managerMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected