aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/c/eager
diff options
context:
space:
mode:
authorGravatar Asim Shankar <ashankar@google.com>2018-04-02 12:58:52 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-04-02 13:01:11 -0700
commit5531482360f803030564d768752aa38800b39636 (patch)
treea65753d103a15a604d9d3d7c553d946b93dede6a /tensorflow/c/eager
parentc8064f1ac3c42951aa1593260346b75d306ffe95 (diff)
eager: Tweak error message.
Diffstat (limited to 'tensorflow/c/eager')
-rw-r--r--tensorflow/c/eager/c_api.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/tensorflow/c/eager/c_api.cc b/tensorflow/c/eager/c_api.cc
index bb1492fca2..c96a38dec3 100644
--- a/tensorflow/c/eager/c_api.cc
+++ b/tensorflow/c/eager/c_api.cc
@@ -496,9 +496,11 @@ tensorflow::Status ValidateInputTypeAndPlacement(
expected_device->name(), " but is actually on ",
actual_device->name(), " (operation running on ",
op_device->name(), ")",
- " Tensors can be copied explicitly using .gpu() or .cpu(),"
- " or transparently copied by using tfe.enable_eager_execution("
- "tfe.DEVICE_PLACEMENT_SILENT). Copying tensors between devices"
+ " Tensors can be copied explicitly using .gpu() or .cpu() "
+ "methods,"
+ " or transparently copied by using tf.enable_eager_execution("
+ "device_policy=tfe.DEVICE_PLACEMENT_SILENT). Copying tensors "
+ "between devices"
" may slow down your model");
case tensorflow::DEVICE_PLACEMENT_WARN:
LOG(WARNING) << "before computing " << op->name << " input #" << i