Adding example
diff --git a/tensorflow/core/api_def/base_api/api_def_UnravelIndex.pbtxt b/tensorflow/core/api_def/base_api/api_def_UnravelIndex.pbtxt
index c92295c..38ec11a 100644
--- a/tensorflow/core/api_def/base_api/api_def_UnravelIndex.pbtxt
+++ b/tensorflow/core/api_def/base_api/api_def_UnravelIndex.pbtxt
@@ -21,10 +21,24 @@
same shape as the indices array.
END
}
- summary: "Converts a flat index or array of flat indices into a tuple of
- coordinate arrays."
+ summary: "Converts an array of flat indices into a tuple of coordinate arrays."
description: <<END
+Example:
+
+```
+y = tf.unravel_index(indices=[2, 5, 7], dims=[3, 3])
+# 'dims' represent a hypothetical (3, 3) tensor of indices:
+# [[0, 1, *2*],
+# [3, 4, *5*],
+# [6, *7*, 8]]
+# For each entry from 'indices', this operation returns
+# its coordinates (marked with '*'), such as
+# 2 ==> (0, 2)
+# 5 ==> (1, 2)
+# 7 ==> (2, 1)
+y ==> [[0, 1, 2], [2, 2, 1]]
+
@compatibility(numpy)
Equivalent to np.unravel_index
@end_compatibility