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

Class SimpleModule

tensorflow/python/module/module_test.py:572–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570
571
572class SimpleModule(module.Module):
573
574 def __init__(self, create_child=True, container_type=list):
575 super(SimpleModule, self).__init__()
576 self.z = MemberType()
577 self.a = container_type([MemberType(), MemberType()])
578 if create_child:
579 self.c = SimpleModule(create_child=False)
580
581is_member = lambda v: isinstance(v, MemberType)
582

Callers 2

test_flattenMethod · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by 2

test_flattenMethod · 0.68
__init__Method · 0.68