aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/g3doc/api_docs/python/functions_and_classes/shard4/tf.real.md
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/g3doc/api_docs/python/functions_and_classes/shard4/tf.real.md')
-rw-r--r--tensorflow/g3doc/api_docs/python/functions_and_classes/shard4/tf.real.md28
1 files changed, 28 insertions, 0 deletions
diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard4/tf.real.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard4/tf.real.md
new file mode 100644
index 0000000000..3be066f588
--- /dev/null
+++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard4/tf.real.md
@@ -0,0 +1,28 @@
+### `tf.real(input, name=None)` {#real}
+
+Returns the real part of a complex number.
+
+Given a tensor `input` of complex numbers, this operation returns a tensor of
+type `float` or `double` that is the real part of each element in `input`.
+All elements in `input` must be complex numbers of the form \(a + bj\),
+where *a* is the real part returned by this operation and *b* is the
+imaginary part.
+
+For example:
+
+```
+# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
+tf.real(input) ==> [-2.25, 3.25]
+```
+
+##### Args:
+
+
+* <b>`input`</b>: A `Tensor`. Must be one of the following types: `complex64`,
+ `complex128`.
+* <b>`name`</b>: A name for the operation (optional).
+
+##### Returns:
+
+ A `Tensor` of type `float` or `double`.
+