MCPcopy Create free account
hub / github.com/clab/dynet / __init__

Method __init__

python/dynet_viz.py:212–214  ·  view source on GitHub ↗
(self, guard=0)

Source from the content-addressed store, hash-verified

210
211class ComputationGraph(object):
212 def __init__(self, guard=0):
213 if guard != SECRET: raise RuntimeError("Do not instantiate ComputationGraph directly. Use pydynet.cg()")
214 self._cg_version = 0
215
216 def renew(self, immediate_compute=False, check_validity=False):
217 vindex_count = -1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected