Commit 56f29b4d authored by Tom Hennigan's avatar Tom Hennigan Committed by TensorFlower Gardener
Browse files

Remove owned_* methods.

Users who want this functionality can do so by subclassing tf.Module and
implemeting the methods themselves using `_flatten`. For example:

```
class MyModule(tf.Module):
  @property
  def owned_variables(self):
    is_variable = lambda v: isinstance(v, tf.Variable)
    return tuple(self._flatten(recursive=False, predicate=is_variable))
```

PiperOrigin-RevId: 232523894
parent b1177e81
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment