(self)
| 785 | # node_def have been updated to proper usage. |
| 786 | @test_util.run_deprecated_v1 |
| 787 | def testSetAttr(self): |
| 788 | op = test_ops.int_attr().op |
| 789 | op._set_attr("foo", attr_value_pb2.AttrValue(i=2)) |
| 790 | # TODO(skyewm): add node_def check |
| 791 | self.assertEqual(op.get_attr("foo"), 2) |
| 792 | |
| 793 | # TODO(nolivia): test all error cases |
| 794 | def testAddControlInput(self): |