aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/c_api.h
diff options
context:
space:
mode:
authorGravatar Asim Shankar <ashankar@google.com>2017-08-03 10:49:24 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-08-03 10:52:59 -0700
commit2bae08e2afe62afbf83064ae7d9e5d2aa2ef9ee6 (patch)
tree40d53f82d338b8e1b934f3cc9d12fb45e886de83 /tensorflow/c/c_api.h
parenteef6b655d5ace47f5624730491af9078545cf391 (diff)
C API: TF_Tensors will always be in host memory.
This change undoes some experimentation in commit 22651083406ca01ac9d481e3367a3510d25f88cd and restores TF_Tensor behavior to what is was prior to that change. PiperOrigin-RevId: 164146670
Diffstat (limited to 'tensorflow/c/c_api.h')
-rw-r--r--tensorflow/c/c_api.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/tensorflow/c/c_api.h b/tensorflow/c/c_api.h
index df38ae5399..43b5078013 100644
--- a/tensorflow/c/c_api.h
+++ b/tensorflow/c/c_api.h
@@ -263,9 +263,6 @@ TF_CAPI_EXPORT extern int64_t TF_Dim(const TF_Tensor* tensor, int dim_index);
TF_CAPI_EXPORT extern size_t TF_TensorByteSize(const TF_Tensor*);
// Return a pointer to the underlying data buffer.
-//
-// Returns NULL if the underlying data is not in host memory
-// (for example, if it refers to addresses in GPU memory).
TF_CAPI_EXPORT extern void* TF_TensorData(const TF_Tensor*);
// --------------------------------------------------------------------------