diff options
author | Asim Shankar <ashankar@google.com> | 2018-04-02 12:58:52 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-02 13:01:11 -0700 |
commit | 5531482360f803030564d768752aa38800b39636 (patch) | |
tree | a65753d103a15a604d9d3d7c553d946b93dede6a /tensorflow/c/eager | |
parent | c8064f1ac3c42951aa1593260346b75d306ffe95 (diff) |
eager: Tweak error message.
Motivated by
https://stackoverflow.com/questions/49616532/a-tensorflow-eager-gpu-error/49617069
PiperOrigin-RevId: 191334050
Diffstat (limited to 'tensorflow/c/eager')
-rw-r--r-- | tensorflow/c/eager/c_api.cc | 8 |
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 |