MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __init__

Method __init__

tensorflow/python/module/module_test.py:346–352  ·  view source on GitHub ↗
(self, depth, trainable=True)

Source from the content-addressed store, hash-verified

344class 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)

Callers

nothing calls this directly

Calls 3

RecursiveModuleClass · 0.85
VariableMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected