Home
last modified time | relevance | path

Searched refs:OwningDeviceMemory (Results 1 – 25 of 36) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/service/
Dmaybe_owning_device_memory.cc25 return *absl::get<tensorflow::se::OwningDeviceMemory>(mem_); in AsDeviceMemoryBase()
32 return absl::holds_alternative<tensorflow::se::OwningDeviceMemory>(mem_); in HasOwnership()
35 absl::optional<tensorflow::se::OwningDeviceMemory>
40 return std::move(absl::get<tensorflow::se::OwningDeviceMemory>(mem_)); in Release()
43 const tensorflow::se::OwningDeviceMemory*
45 return HasOwnership() ? &absl::get<tensorflow::se::OwningDeviceMemory>(mem_) in AsOwningDeviceMemory()
Dmaybe_owning_device_memory.h31 explicit MaybeOwningDeviceMemory(tensorflow::se::OwningDeviceMemory owned) in MaybeOwningDeviceMemory()
43 MaybeOwningDeviceMemory& operator=(tensorflow::se::OwningDeviceMemory owned) {
58 absl::optional<tensorflow::se::OwningDeviceMemory> Release();
62 const tensorflow::se::OwningDeviceMemory* AsOwningDeviceMemory() const;
68 absl::variant<tensorflow::se::OwningDeviceMemory,
Dexecutable.h153 std::vector<se::OwningDeviceMemory> to_be_released) in ExecutionOutput()
171 result_.set_buffer(se::OwningDeviceMemory(), index); in ~ExecutionOutput()
179 void AddToBeReleased(se::OwningDeviceMemory mem) { in AddToBeReleased()
199 const std::vector<se::OwningDeviceMemory>& ToBeReleased() const { in ToBeReleased()
203 std::vector<se::OwningDeviceMemory> ConsumeToBeReleased() { in ConsumeToBeReleased()
218 std::vector<se::OwningDeviceMemory> to_be_released_;
228 se::OwningDeviceMemory output_shape_table_;
Dshaped_buffer_test.cc59 StatusOr<se::OwningDeviceMemory> Allocate(int device_ordinal, uint64 size, in Allocate()
64 return se::OwningDeviceMemory(); in Allocate()
68 return se::OwningDeviceMemory(se::DeviceMemoryBase(buf, size), in Allocate()
126 se::OwningDeviceMemory m, in TEST()
163 se::OwningDeviceMemory m, in TEST()
Dallocation_tracker.h80 se::OwningDeviceMemory device_memory;
Dexecutable.cc67 const tensorflow::se::OwningDeviceMemory* mem = in ToShapedBuffer()
307 if (absl::optional<se::OwningDeviceMemory> maybe_owning_buffer = in MarkToBeReleasedArguments()
Dshaped_buffer.h182 void set_buffer(se::OwningDeviceMemory buffer, const ShapeIndex& index) { in set_buffer()
/external/tensorflow/tensorflow/stream_executor/
Ddevice_memory_allocator.h153 using OwningDeviceMemory = ScopedDeviceMemory<uint8>; variable
176 virtual port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal,
187 port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal, uint64 size) { in Allocate()
193 port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal, uint64 size, in Allocate()
244 port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal, uint64 size,
Dtf_allocator_adapter.cc38 port::StatusOr<OwningDeviceMemory> TfAllocatorAdapter::Allocate( in Allocate()
53 return OwningDeviceMemory(DeviceMemoryBase(data, size), device_ordinal, this); in Allocate()
Dtf_allocator_adapter.h42 port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal, uint64 size,
81 port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal, uint64 size, in Allocate()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_executable.cc114 TF_ASSIGN_OR_RETURN(se::OwningDeviceMemory out, in MemoryForAllocation()
272 if (absl::optional<se::OwningDeviceMemory> owning = in CreateResultShapedBuffer()
296 se::OwningDeviceMemory allocated_buffer, in CreateResultShapedBuffer()
312 if (absl::optional<se::OwningDeviceMemory> owned_buffer = in CreateResultShapedBuffer()
/external/tensorflow/tensorflow/stream_executor/gpu/
Dredzone_allocator.h124 std::vector<std::pair<OwningDeviceMemory, int64>> allocated_buffers_;
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dfft_thunk.h54 std::vector<se::OwningDeviceMemory> allocated_buffers_;
Dgpu_executable.cc345 se::OwningDeviceMemory buffer, in BufferForAllocation()
494 absl::optional<tensorflow::se::OwningDeviceMemory> owning = in ExecuteAsyncOnStreamImpl()
521 se::OwningDeviceMemory allocated_buffer, in ExecuteAsyncOnStreamImpl()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dlocal_client_test_base.h53 StatusOr<se::OwningDeviceMemory> Allocate(int device_ordinal, uint64 size,
Dlocal_client_test_base.cc44 StatusOr<se::OwningDeviceMemory> TestAllocator::Allocate(int device_ordinal, in Allocate()
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_memory_manager.h107 xla::StatusOr<se::OwningDeviceMemory> Allocate(xla::Backend* backend,
Dxrt_state.cc102 se::OwningDeviceMemory buffer, in AllocateScopedShapedBuffer()
489 se::OwningDeviceMemory buffer, in MakeTuple()
671 xla::MaybeOwningDeviceMemory(se::OwningDeviceMemory( in ToExecutionInput()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_tensor.cc58 TF_ASSIGN_OR_RETURN(se::OwningDeviceMemory buffer, in AllocateShapedBuffer()
Dxla_launch_util.cc212 *in_buffer = se::OwningDeviceMemory(buffer, device_ordinal, allocator); in PopulateExecutionInputBuffer()
524 output.set_buffer(se::OwningDeviceMemory(), {output_num}); in PopulateOutputs()
570 output.set_buffer(se::OwningDeviceMemory(), {output_num}); in PopulateOutputs()
/external/tensorflow/tensorflow/stream_executor/tpu/
Dc_api_conversions.h98 SE_MaybeOwningDeviceMemory ToC(stream_executor::OwningDeviceMemory* mem);
Dc_api_conversions.cc49 const stream_executor::OwningDeviceMemory* owned = in ToC()
70 stream_executor::OwningDeviceMemory(ApiConverter::FromC(se_mem->memory), in FromC()
122 SE_MaybeOwningDeviceMemory ToC(stream_executor::OwningDeviceMemory* mem) { in ToC()
/external/tensorflow/tensorflow/compiler/xla/pjrt/
Dtracked_device_buffer_test.cc37 se::OwningDeviceMemory device_memory, in MakeArray()
Dtracked_device_buffer.cc157 se::OwningDeviceMemory(buf, device_ordinal_, allocator)); in AddToInputAsDonated()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/tests/
Dmlir_gpu_test_base.cc113 std::vector<se::OwningDeviceMemory> owning_memory; in RunMlirModuleWithHostBuffers()

12