(self)
| 273 | self.assertLess(np.max(np.abs(ori_val - tar_weight.numpy())), 1e-7) |
| 274 | |
| 275 | def test_exceptions(self): |
| 276 | print('-' * 20, 'test_exceptions', '-' * 20) |
| 277 | try: |
| 278 | ni = Input([4, 784]) |
| 279 | model = Model(inputs=ni, outputs=ni) |
| 280 | model.save_weights('./empty_model.h5') |
| 281 | except Exception as e: |
| 282 | print(e) |
| 283 | |
| 284 | |
| 285 | if __name__ == '__main__': |
nothing calls this directly
no test coverage detected