(self)
| 697 | attrs=('tolerance', '0.3', 'T', dtypes.float32.as_datatype_enum)) |
| 698 | |
| 699 | def testExecuteIntAttr(self): |
| 700 | total = execute( |
| 701 | b'AddN', |
| 702 | num_outputs=1, |
| 703 | inputs=[constant_op.constant(3), constant_op.constant(4)], |
| 704 | attrs=('T', dtypes.int32.as_datatype_enum, 'N', 2))[0] |
| 705 | self.assertAllEqual(7, total) |
| 706 | |
| 707 | def testExecuteIntAttrBadValue(self): |
| 708 | with self.assertRaises(errors.InvalidArgumentError): |
nothing calls this directly
no test coverage detected