◆ __init__()
def polygraphy.backend.tf.loader.ModifyGraph.__init__ |
( |
|
self, |
|
|
|
graph, |
|
|
|
outputs = None |
|
) |
| |
Functor that modifies a TensorFlow graph.
Args:
graph (Callable() -> Tuple[tf.Graph, Sequence[str]]):
A callable that can supply a tuple containing a
TensorFlow graph and output names.
outputs (List[str]):
Names of output tensors. If provided, this will override the outputs
determined by the loader.
If a value of `constants.MARK_ALL` is used instead of a list, all tensors in the network are marked.
◆ __call__()
def polygraphy.backend.tf.loader.ModifyGraph.__call__ |
( |
|
self | ) |
|
Modifies a TensorFlow graph.
Returns:
Tuple[tf.Graph, Sequence[str]]: The TensorFlow graph, and the names of its outputs.
◆ _graph
polygraphy.backend.tf.loader.ModifyGraph._graph |
|
private |
◆ outputs
polygraphy.backend.tf.loader.ModifyGraph.outputs |
The documentation for this class was generated from the following file: