Op documentation update.
update of g3doc/includes/tf_passes.md PiperOrigin-RevId: 354441390 Change-Id: I68b33a0d917c8cf50557bbc0fb63e8e7cf103587
This commit is contained in:
parent
22070e377a
commit
7d33acc040
@ -108,6 +108,9 @@ op. The order of ops will be preserved. Functions named `main` with no
|
|||||||
have been imported from a V1 TensorFlow graph, where feeds/fetches/targets are
|
have been imported from a V1 TensorFlow graph, where feeds/fetches/targets are
|
||||||
not provided at certain stages of IR transformation (e.g. pre-placement).
|
not provided at certain stages of IR transformation (e.g. pre-placement).
|
||||||
|
|
||||||
|
Option `ops-to-preserve` allows to specify ops that should not be pruned,
|
||||||
|
regardless of their reachability.
|
||||||
|
|
||||||
For example, the following:
|
For example, the following:
|
||||||
|
|
||||||
```mlir
|
```mlir
|
||||||
@ -139,6 +142,11 @@ func @graph(%arg0: tensor<i32>, %arg1: tensor<i32>) -> tensor<i32> {
|
|||||||
return %graph : tensor<i32>
|
return %graph : tensor<i32>
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Options
|
||||||
|
```
|
||||||
|
-ops-to-preserve : Comma separated list of ops that should not be pruned regardless of reachability
|
||||||
|
```
|
||||||
### `-tf-executor-to-functional-conversion`: Lifts tf_executor.island inner ops from a tf_executor.graph
|
### `-tf-executor-to-functional-conversion`: Lifts tf_executor.island inner ops from a tf_executor.graph
|
||||||
This pass converts tf_executor.graphs consisting of only tf_executor.islands and
|
This pass converts tf_executor.graphs consisting of only tf_executor.islands and
|
||||||
a tf_executor.fetch into a sea of nodes consisting of TensorFlow Dialect ops by
|
a tf_executor.fetch into a sea of nodes consisting of TensorFlow Dialect ops by
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user