Home
last modified time | relevance | path

Searched refs:TpuNodeContext (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/stream_executor/tpu/
Dtpu_node_context.cc29 StatusOr<std::unique_ptr<TpuNodeContext>> TpuNodeContext::Create( in Create()
40 return std::make_unique<TpuNodeContext>(device_ordinal, node_context); in Create()
43 TpuNodeContext::~TpuNodeContext() { in ~TpuNodeContext()
48 Status TpuNodeContext::StopChipHeartbeats() { in StopChipHeartbeats()
55 Status TpuNodeContext::CloseTpuHost() { in CloseTpuHost()
62 Status TpuNodeContext::Initialize(int device_ordinal) { in Initialize()
69 TpuPlatformInterface* TpuNodeContext::platform() { in platform()
73 int TpuNodeContext::device_ordinal() const { return device_ordinal_; } in device_ordinal()
75 xla::Backend* TpuNodeContext::backend() const { in backend()
84 stream_executor::StreamExecutor* TpuNodeContext::stream_executor() const { in stream_executor()
Dtpu_node_context.h42 class TpuNodeContext final {
48 static StatusOr<std::unique_ptr<TpuNodeContext>> Create(int device_ordinal);
50 explicit TpuNodeContext(int device_ordinal, XLA_TpuNodeContext* node_context) in TpuNodeContext() function
54 ~TpuNodeContext();
74 TF_DISALLOW_COPY_AND_ASSIGN(TpuNodeContext);
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dtpu_execute_op.cc138 tpu::TpuNodeContext* node_context, se::Stream* stream, in AllocateOutputTuple()
172 tpu::TpuNodeContext* node_context, se::Stream* stream, in AllocateOutputTensors()
188 OpKernelContext* context, tpu::TpuNodeContext* node_context, in RunExecutable()
230 OpKernelContext* context, tpu::TpuNodeContext* node_context, in ExecuteTPUProgram()
276 TF_ASSIGN_OR_RETURN(std::unique_ptr<tpu::TpuNodeContext> node_context, in DoWork()
277 tpu::TpuNodeContext::Create(device_ordinal)); in DoWork()
398 TF_ASSIGN_OR_RETURN(std::unique_ptr<tpu::TpuNodeContext> node_context, in DoWork()
399 tpu::TpuNodeContext::Create(device_ordinal)); in DoWork()
/external/tensorflow/tensorflow/core/tpu/
Dtpu_execute.cc58 using ::tensorflow::tpu::TpuNodeContext;
67 explicit HostTransferManager(TpuNodeContext*, xla::Backend*) {} in HostTransferManager() argument
300 Status status = TpuNodeContext::StopChipHeartbeats(); in TPUCancelExecution()
311 Status status = TpuNodeContext::CloseTpuHost(); in TPUCancelExecution()
418 TpuNodeContext* node_context, xla::DeviceAssignment* device_assignment, in TPUExecute()
Dtpu_execute.h46 tpu::TpuNodeContext* node_context, xla::DeviceAssignment* device_assignment,
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_tpu_device.h56 std::unique_ptr<tpu::TpuNodeContext> node_context_;
Dxrt_tpu_device.cc39 tpu::TpuNodeContext::Create(device_ordinal)); in Acquire()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compile_op.cc68 Status close_status = TpuNodeContext::CloseTpuHost(); in Compute()
Dtpu_execute_op.cc64 using ::tensorflow::tpu::TpuNodeContext;
397 const VariableUpdateMap& variable_updates, TpuNodeContext* node_context, in AllocateOutputTensors()
628 TF_ASSIGN_OR_RETURN(std::unique_ptr<TpuNodeContext> node_context, in DoWork()
629 TpuNodeContext::Create(device_ordinal)); in DoWork()
Dtransfer_ops.cc100 TF_CHECK_OK(tpu::TpuNodeContext::CloseTpuHost()); in Cancel()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_tpu_device.cc365 TF_RETURN_IF_ERROR(tpu::TpuNodeContext::Initialize(i)); in CreateDevices()
389 device->SetHandleDeviceErrorCallback(&tpu::TpuNodeContext::CloseTpuHost); in CreateDevices()