diff options
author | 2016-11-11 19:04:23 -0800 | |
---|---|---|
committer | 2016-11-11 19:25:44 -0800 | |
commit | 53320fd8c8e47ac0dfb4be6d133cb8ad12a88ab0 (patch) | |
tree | 1421c4b3f1506f70d6159907e61fda7ca38d8663 | |
parent | e0c782167f0e616f1147397cbbfcee490bc2459f (diff) |
Improve debug output for sparse_ops.
Change: 138942814
-rw-r--r-- | tensorflow/python/ops/sparse_ops.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/python/ops/sparse_ops.py b/tensorflow/python/ops/sparse_ops.py index 3e9e262da3..43b7bf0be3 100644 --- a/tensorflow/python/ops/sparse_ops.py +++ b/tensorflow/python/ops/sparse_ops.py @@ -1690,7 +1690,8 @@ def _take_many_sparse_from_tensors_map( if sparse_map_op.type not in ("AddSparseToTensorsMap", "AddManySparseToTensorsMap"): raise TypeError("sparse_map_op must be one of AddSparseToTensorsMap or " - "AddSparseToTensorsMap") + "AddSparseToTensorsMap. Instead, found `%s`." % + sparse_map_op.type) with ops.colocate_with(sparse_map_op): shared_name = sparse_map_op.get_attr("shared_name") or sparse_map_op.name output_indices, output_values, output_shape = ( |