(self)
| 206 | root.f([constant_op.constant(1.), constant_op.constant(1.)]) |
| 207 | |
| 208 | def test_nested_outputs(self): |
| 209 | root = tracking.AutoTrackable() |
| 210 | root.f = def_function.function(lambda x: (2. * x, (3. * x, 4. * x))) |
| 211 | root.f(constant_op.constant(1.)) |
| 212 | to_save = root.f.get_concrete_function(constant_op.constant(1.)) |
| 213 | save_dir = os.path.join(self.get_temp_dir(), "saved_model") |
| 214 | with self.assertRaisesRegexp( |
| 215 | ValueError, "non-flat outputs"): |
| 216 | save.save(root, save_dir, to_save) |
| 217 | |
| 218 | def test_nested_dict_outputs(self): |
| 219 | root = util.Checkpoint( |
nothing calls this directly
no test coverage detected