A control flow graph (CFG).
View aliases
Main aliases
tfp.experimental.auto_batching.frontend.instructions.ControlFlowGraph
, tfp.experimental.auto_batching.frontend.st.inst.ControlFlowGraph
, tfp.experimental.auto_batching.frontend.stack.inst.ControlFlowGraph
, tfp.experimental.auto_batching.stack_optimization.inst.ControlFlowGraph
, tfp.experimental.auto_batching.stackless.inst.ControlFlowGraph
tfp.experimental.auto_batching.instructions.ControlFlowGraph(
blocks
)
Methods
block
block(
index
)
Returns the Block
given by the input index
.
Args | |
---|---|
index
|
A Python int .
|
Returns | |
---|---|
block
|
The Block at that location in the block list.
|
block_index
block_index(
block
)
Returns the int
index of the given Block
.
Args | |
---|---|
block
|
The block to look up. If None , returns the exit index.
|
Returns | |
---|---|
index
|
Python int , the index of the requested block.
|
enter_block
enter_block()
Returns the entry Block
.
exit_index
exit_index()
Returns the int
index denoting "exit this CFG".