diff options
author | 2017-11-08 15:35:27 -0800 | |
---|---|---|
committer | 2017-11-10 16:14:37 -0800 | |
commit | 64d2636e2946772d4b1531ec91b389110a2787b7 (patch) | |
tree | 71fdb3d248e9b1f24ab649e1d21eac490e6782bd /tensorflow/compiler/xla/literal_util.h | |
parent | 2ba34173fad0d5b7d986baeb8171bdc6afdcd7bb (diff) |
Move MakeFakeLiteral from client/lib/testing.h to tests/test_utils.h. Also remove superfluous literal creation methods in that file, and replace them with the existing ones in the Literal class.
Also, optionally print layout in Literal::ToString.
PiperOrigin-RevId: 175076277
Diffstat (limited to 'tensorflow/compiler/xla/literal_util.h')
-rw-r--r-- | tensorflow/compiler/xla/literal_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/literal_util.h b/tensorflow/compiler/xla/literal_util.h index a1e288829f..667f926c46 100644 --- a/tensorflow/compiler/xla/literal_util.h +++ b/tensorflow/compiler/xla/literal_util.h @@ -450,7 +450,7 @@ class Literal { tensorflow::Status ValidateLiteral() const; // Returns a string representation of the literal value. - string ToString() const; + string ToString(bool print_layout = false) const; // Invokes the "per cell" callback for each element in the provided // literal with the element's indices and a string representation of |