aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow
diff options
context:
space:
mode:
authorGravatar Josh Levenberg <josh11b@tensorflow.org>2016-06-03 17:07:01 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-06-03 18:18:18 -0700
commitad676301561ed2c5414ce9261ca9b2b984a8ad74 (patch)
treebd6fa2cb05352d0fff4dec22c986afea6a849a14 /tensorflow
parent23fe378520e77bbeb8f47d00eac6737a8ec36d0f (diff)
Delete unused and undefined GPUUtil::AsGPUFloat().
Change: 124025409
Diffstat (limited to 'tensorflow')
-rw-r--r--tensorflow/core/common_runtime/gpu/gpu_util.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/tensorflow/core/common_runtime/gpu/gpu_util.h b/tensorflow/core/common_runtime/gpu/gpu_util.h
index 370e4f32b9..0524fedf31 100644
--- a/tensorflow/core/common_runtime/gpu/gpu_util.h
+++ b/tensorflow/core/common_runtime/gpu/gpu_util.h
@@ -66,12 +66,10 @@ class GPUUtil {
// (up to a limit). "device" can be either a CPU or a GPU device.
static string MemoryDebugString(const Device* device, Tensor* tensor);
- static perftools::gputools::DeviceMemory<float> AsGPUFloat(const Tensor& t);
-
// Map a Tensor as a DeviceMemory object wrapping the given typed
// buffer.
template <typename T>
- perftools::gputools::DeviceMemory<T> AsDeviceMemory(const Tensor& t) {
+ static perftools::gputools::DeviceMemory<T> AsDeviceMemory(const Tensor& t) {
T* ptr = reinterpret_cast<T*>(const_cast<void*>(DMAHelper::base(&t)));
return perftools::gputools::DeviceMemory<T>(
perftools::gputools::DeviceMemoryBase(ptr, t.TotalBytes()));