(self, depth, trainable=True)
| 344 | class RecursiveModule(module.Module): |
| 345 | |
| 346 | def __init__(self, depth, trainable=True): |
| 347 | super(RecursiveModule, self).__init__(name="badger") |
| 348 | with self.name_scope: |
| 349 | self.child = None |
| 350 | if depth > 1: |
| 351 | self.child = RecursiveModule(depth - 1, trainable=trainable) |
| 352 | self.w = variables.Variable(1.0, trainable=trainable, name="mushroom") |
| 353 | |
| 354 | |
| 355 | @six.add_metaclass(abc.ABCMeta) |
nothing calls this directly
no test coverage detected