(x)
| 69 | |
| 70 | |
| 71 | def _test_if(x): |
| 72 | y = ops.Const(1) |
| 73 | with ops.If(ops.GT([x, ops.Const(50)])): |
| 74 | ops.Const(2, blob_out=y) |
| 75 | with ops.If(ops.LT([x, ops.Const(50)])): |
| 76 | ops.Const(3, blob_out=y) |
| 77 | ops.stop() |
| 78 | ops.Const(4, blob_out=y) |
| 79 | return y |
| 80 | |
| 81 | |
| 82 | class TestNetBuilder(unittest.TestCase): |