Home
last modified time | relevance | path

Searched refs:gpu_tensor (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_util.cc256 const Tensor* gpu_tensor, Tensor* cpu_tensor, in CopyGPUTensorToCPU() argument
261 Status s = PrepareCopy(gpu_device, device_context, *gpu_tensor, cpu_tensor, in CopyGPUTensorToCPU()
278 const int64 total_bytes = gpu_tensor->TotalBytes(); in CopyGPUTensorToCPU()
280 void* src_ptr = GetBase(gpu_tensor); in CopyGPUTensorToCPU()
286 TensorReference input_ref(*gpu_tensor); in CopyGPUTensorToCPU()
301 Device* gpu_device, Tensor* gpu_tensor, in CopyCPUTensorToGPU() argument
306 Status s = PrepareCopy(gpu_device, device_context, *cpu_tensor, gpu_tensor, in CopyCPUTensorToGPU()
329 void* dst_ptr = GetBase(gpu_tensor); in CopyCPUTensorToGPU()
Dgpu_util.h49 const Tensor* gpu_tensor, Tensor* cpu_tensor,
90 Device* gpu_device, Tensor* gpu_tensor,
Dgpu_device_test.cc104 void CopyCPUToGPU(Tensor* cpu_tensor, Tensor* gpu_tensor, Device* device, in CopyCPUToGPU() argument
107 gpu_tensor)); in CopyCPUToGPU()
110 void CopyGPUToCPU(Tensor* gpu_tensor, Tensor* cpu_tensor, Device* device, in CopyGPUToCPU() argument
113 gpu_tensor, /*tensor_name=*/"", device, cpu_tensor)); in CopyGPUToCPU()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/task/
DBUILD70 "//tensorflow/lite/delegates/gpu/common/task:gpu_tensor",
80 name = "gpu_tensor",
81 hdrs = ["gpu_tensor.h"],
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dinference_context.cc722 const auto& gpu_tensor = *GetTensor(id); in GetOutputTensor() local
723 const auto dst_shape = BHWC(gpu_tensor.Batch(), gpu_tensor.Height(), in GetOutputTensor()
724 gpu_tensor.Width(), gpu_tensor.Channels()); in GetOutputTensor()
728 return gpu_tensor.ReadData(queue, result); in GetOutputTensor()
Dcl_arguments.cc197 Tensor gpu_tensor; in CreateCLObject() local
198 RETURN_IF_ERROR(gpu_tensor.CreateFromDescriptor(*tensor_desc, context)); in CreateCLObject()
199 *result = absl::make_unique<Tensor>(std::move(gpu_tensor)); in CreateCLObject()
DBUILD516 "//tensorflow/lite/delegates/gpu/common/task:gpu_tensor",
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/
Dmetal_arguments.cc154 MetalSpatialTensor gpu_tensor; in CreateMetalObject() local
155 RETURN_IF_ERROR(gpu_tensor.CreateFromDescriptor(*tensor_desc, device)); in CreateMetalObject()
156 *result = absl::make_unique<MetalSpatialTensor>(std::move(gpu_tensor)); in CreateMetalObject()
DBUILD246 "//tensorflow/lite/delegates/gpu/common/task:gpu_tensor",
/external/tensorflow/tensorflow/python/eager/
Dops_test.py291 gpu_tensor = cpu_tensor.gpu()
292 self.assertAllEqual(cpu_tensor + gpu_tensor, 2.0)
/external/tensorflow/tensorflow/core/common_runtime/
Ddirect_session_test.cc2368 Tensor gpu_tensor; in TEST() local
2382 gpu_tensor = outputs[0]; in TEST()
2383 ASSERT_TRUE(IsCUDATensor(gpu_tensor)); in TEST()
2392 TF_ASSERT_OK(session->RunCallable(feed_gpu_fetch_cpu, {gpu_tensor}, in TEST()
2441 Tensor gpu_tensor; in TestFeedAndFetchTensorsInDeviceMemory() local
2456 gpu_tensor = outputs[0]; in TestFeedAndFetchTensorsInDeviceMemory()
2457 ASSERT_TRUE(IsCUDATensor(gpu_tensor)) << DataType_Name(dtype); in TestFeedAndFetchTensorsInDeviceMemory()
2468 TF_ASSERT_OK(session->RunCallable(handle, {gpu_tensor}, &outputs, nullptr)) in TestFeedAndFetchTensorsInDeviceMemory()
/external/tensorflow/tensorflow/python/framework/
Dconfig_test.py73 gpu_tensor = cpu_tensor.gpu()
74 self.assertAllEqual(cpu_tensor + gpu_tensor, 2.0)