blob: 42c86d9978ff7a7a671883f08f7a95c7391ce065 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Control Flow
Note: Functions taking `Tensor` arguments can also take anything accepted by
`tf.convert_to_tensor`.
[TOC]
## Control Flow Operations
TensorFlow provides several operations and classes that you can use to control
the execution of operations and add conditional dependencies to your graph.
* `tf.identity`
* `tf.tuple`
* `tf.group`
* `tf.no_op`
* `tf.count_up_to`
* `tf.cond`
* `tf.case`
* `tf.while_loop`
## Logical Operators
TensorFlow provides several operations that you can use to add logical operators
to your graph.
* `tf.logical_and`
* `tf.logical_not`
* `tf.logical_or`
* `tf.logical_xor`
## Comparison Operators
TensorFlow provides several operations that you can use to add comparison
operators to your graph.
* `tf.equal`
* `tf.not_equal`
* `tf.less`
* `tf.less_equal`
* `tf.greater`
* `tf.greater_equal`
* `tf.where`
## Debugging Operations
TensorFlow provides several operations that you can use to validate values and
debug your graph.
* `tf.is_finite`
* `tf.is_inf`
* `tf.is_nan`
* `tf.verify_tensor_all_finite`
* `tf.check_numerics`
* `tf.add_check_numerics_ops`
* `tf.Assert`
* `tf.Print`
|