Home
last modified time | relevance | path

Searched refs:GetHostContext (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/core/tfrt/eager/
Dc_api_tfrt.cc386 context_.GetHostContext()->Await(FormRef(async_tensor)); in DataType()
417 context_.GetHostContext()->Await(FormRef(async_tensor)); in TensorHandleStatus()
486 context_.GetHostContext()->Await(th.GetAsyncDevice().CopyRCRef()); in DeviceName()
504 context_.GetHostContext()->Await(th.GetAsyncDevice().CopyRCRef()); in DeviceType()
515 auto* host_ctx = context_.GetHostContext(); in Resolve()
567 context_.GetHostContext()->Await(th.GetAsyncMetadata().CopyRCRef()); in Metadata()
633 return MakeScalarTensor(value, GetHostContext()); in CreateInt64Scalar()
638 return MakeScalarTensor(value, GetHostContext()); in CreateUint64Scalar()
643 return MakeScalarTensor(value, GetHostContext()); in CreateInt32Scalar()
648 return MakeScalarTensor(value, GetHostContext()); in CreateFloatScalar()
[all …]
Dtfrt_context.cc80 host_context_ = corert_->GetHostContext(); in TfrtContext()
109 tensorflow::tfrt_global::GlobalHostContext::Set(corert_->GetHostContext()); in TfrtContext()
Dfunction_cache_test.cc227 auto& device = corert->GetHostContext()->GetHostDevice(); in TEST_P()
229 auto req_ctx = RequestContextBuilder(corert->GetHostContext(), in TEST_P()
235 [host = corert->GetHostContext()]( in TEST_P()
Dtfrt_context.h85 HostContext* GetHostContext() { return host_context_; } in GetHostContext() function
Dfunction_cache.cc102 HostContext* host_ctx = corert->GetHostContext(); in GetOrAddFunction()
Dc_api_tfrt.h152 GetHostContext()->Quiesce(); in AsyncWait()
286 HostContext* GetHostContext();
/external/tensorflow/tensorflow/core/tfrt/runtime/
Druntime.cc78 corert, corert->GetHostContext()->GetHostDeviceRef()); in InitializeOpHandlers()
84 auto cpu_device = corert->GetHostContext()->GetHostDeviceRef(); in InitializeOpHandlers()
112 default_device, gpu_ordinal, corert->GetHostContext()); in InitializeOpHandlers()
/external/tensorflow/tensorflow/core/tfrt/saved_model/
Dsaved_model_testutil.h53 tfrt::HostContext* GetHostContext() const { in GetHostContext() function
54 return saved_model_->GetHostContext(); in GetHostContext()
Dsaved_model.cc202 auto* host = runtime.core_runtime()->GetHostContext(); in RunInitializers()
381 tfrt::HostContext* SavedModel::GetHostContext() const { in GetHostContext() function in tensorflow::tfrt_stub::SavedModel
382 return runtime_->core_runtime()->GetHostContext(); in GetHostContext()
615 ->GetHostContext()), in SavedModelImpl()
Dsaved_model.h143 tfrt::HostContext* GetHostContext() const;
/external/tensorflow/tensorflow/core/tfrt/eager/backends/cpu/
Dcpu_registration.cc40 auto cpu = core_runtime->GetHostContext() in RegisterCpuOpHandler()
/external/tensorflow/tensorflow/core/tfrt/eager/backends/gpu/
Dgpu_registration.cc54 core_runtime->GetHostContext()); in RegisterGpuOpHandler()
/external/tensorflow/tensorflow/core/tfrt/eager/core_runtime/
Dop_handler_selector.cc38 cpu_device_(core_runtime->GetHostContext()->GetHostDevice()), in EagerOpHandlerSelector()
/external/tensorflow/tensorflow/compiler/xla/pjrt/
Dtfrt_cpu_pjrt_client.cc602 tfrt::MakeConstructedAsyncValueRef<CpuEvent>(GetHostContext()); in BufferFromHostLiteral()
617 tfrt::EnqueueWork(GetHostContext(), [literal, av = avs[0].CopyRef(), in BufferFromHostLiteral()
632 tfrt::EnqueueWork(GetHostContext(), [i, literal, av = avs[i].CopyRef(), in BufferFromHostLiteral()
803 client_->GetHostContext()->Await(av.CopyRCRef()); in Release()
875 client_->GetHostContext()->Await(av.CopyRCRef()); in logical_on_device_shape()
932 auto host_ctx = client_->GetHostContext(); in ToLiteral()
1094 src_definition_event.AndThen([host_ctx = client()->GetHostContext(), in CopyToDevice()
1309 auto* host_context = client_->GetHostContext(); in ExecuteHelper()
1684 tfrt::EnqueueWork(client_->GetHostContext(), [&, replica, partition, i] { in Execute()
Dtfrt_cpu_pjrt_client.h226 tfrt::HostContext* GetHostContext() const { return host_ctx_.get(); } in GetHostContext() function
/external/tensorflow/tensorflow/core/tfrt/utils/
Dutils.cc128 auto* host_context = core_runtime->GetHostContext(); in CreateBefFileFromBefBuffer()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dbef_thunk.cc226 tfrt::HostContext* host = runtime_and_queue.core_runtime->GetHostContext(); in CreateBefThunk()
338 runtime_and_queue.core_runtime->GetHostContext(), in ExecuteOnStream()
/external/tensorflow/tensorflow/core/tfrt/graph_executor/
Dgraph_executor.h122 options_.runtime->core_runtime()->GetHostContext()) {} in GraphExecutor()
Dgraph_executor.cc150 auto* host = runtime.core_runtime()->GetHostContext(); in GraphExecutionRunOnFunction()
528 auto* host = runtime().core_runtime()->GetHostContext(); in InitBef()
/external/tensorflow/tensorflow/core/runtime_fallback/runtime/
Druntime_fallback_op_handler.cc291 runtime, runtime->GetHostContext()->GetHostDeviceRef(), in CreateRuntimeFallbackOpHandler()
/external/tensorflow/tensorflow/core/tfrt/saved_model/tests/
Dsaved_model_test.cc128 auto op_count = saved_model->GetHostContext() in TEST()
/external/tensorflow/tensorflow/c/eager/
Dc_api.cc127 tfrt_context->GetCoreRuntime()->GetHostContext())); in TFE_NewContext()