◆ __init__()
def polygraphy.backend.tf.loader.OptimizeGraph.__init__ |
( |
|
self, |
|
|
|
graph |
|
) |
| |
Functor that freezes a TensorFlow graph, and folds constants.
Args:
graph (Callable() -> Tuple[tf.Graph, Sequence[str]]):
A callable that can supply a tuple containing a TensorFlow graph and output names.
◆ constfold()
def polygraphy.backend.tf.loader.OptimizeGraph.constfold |
( |
|
self, |
|
|
|
graphdef, |
|
|
|
output_names |
|
) |
| |
◆ __call__()
def polygraphy.backend.tf.loader.OptimizeGraph.__call__ |
( |
|
self | ) |
|
Freezes a TensorFlow graph, and folds constants.
Returns:
Tuple[tf.Graph, Sequence[str]]: The TensorFlow graph, and the names of its outputs.
◆ _graph
polygraphy.backend.tf.loader.OptimizeGraph._graph |
|
private |
The documentation for this class was generated from the following file: