Home
last modified time | relevance | path

Searched refs:MaybeOwningDeviceMemory (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dmaybe_owning_device_memory.h29 class MaybeOwningDeviceMemory {
31 MaybeOwningDeviceMemory() = default;
32 explicit MaybeOwningDeviceMemory(OwningDeviceMemory owned) in MaybeOwningDeviceMemory() function
34 explicit MaybeOwningDeviceMemory(se::DeviceMemoryBase unowned) in MaybeOwningDeviceMemory() function
36 MaybeOwningDeviceMemory(MaybeOwningDeviceMemory&&) = default;
37 ~MaybeOwningDeviceMemory() = default;
39 MaybeOwningDeviceMemory& operator=(se::DeviceMemoryBase unowned) {
44 MaybeOwningDeviceMemory& operator=(OwningDeviceMemory owned) {
49 MaybeOwningDeviceMemory& operator=(MaybeOwningDeviceMemory&&) = default;
Dmaybe_owning_device_memory.cc20 se::DeviceMemoryBase MaybeOwningDeviceMemory::AsDeviceMemoryBase() { in AsDeviceMemoryBase()
28 bool MaybeOwningDeviceMemory::HasOwnership() const { in HasOwnership()
32 absl::optional<OwningDeviceMemory> MaybeOwningDeviceMemory::Release() { in Release()
Dexecutable.h104 std::vector<ShapeTree<xla::MaybeOwningDeviceMemory>> arguments, in ExecuteOnStream()
112 std::vector<ShapeTree<xla::MaybeOwningDeviceMemory>> arguments) { in ExecuteAsyncOnStream()
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_state.h189 xla::ShapeTree<xla::MaybeOwningDeviceMemory> ToDeviceMemoryTree(
Dxrt_state.cc540 xla::ShapeTree<xla::MaybeOwningDeviceMemory>
543 xla::ShapeTree<xla::MaybeOwningDeviceMemory> shaped_tree(on_device_shape()); in ToDeviceMemoryTree()