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

Function check_pydot

tensorflow/python/keras/utils/vis_utils.py:43–53  ·  view source on GitHub ↗

Returns True if PyDot and Graphviz are available.

()

Source from the content-addressed store, hash-verified

41
42
43def check_pydot():
44 """Returns True if PyDot and Graphviz are available."""
45 if pydot is None:
46 return False
47 try:
48 # Attempt to create an image of a blank graph
49 # to check the pydot/graphviz installation.
50 pydot.Dot.create(pydot.Dot())
51 return True
52 except OSError:
53 return False
54
55
56def is_wrapped_model(layer):

Callers 1

model_to_dotFunction · 0.85

Calls 2

DotMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected