()
| 1128 | ops.add_to_collection("x", x) |
| 1129 | ops.add_to_collection("y", y) |
| 1130 | def fn(): |
| 1131 | x_const = constant_op.constant(ops.get_collection("x")[0]) |
| 1132 | y_const = constant_op.constant(ops.get_collection("y")[0]) |
| 1133 | return math_ops.add(x_const, y_const) |
| 1134 | |
| 1135 | cnd = cond_v2.cond_v2(constant_op.constant(True), fn, fn) |
| 1136 | self.assertEquals(cnd.eval(), 7) |
nothing calls this directly
no test coverage detected