Commit 0a8503d
committed
Prevent replacing DALI op by constant in the constant folding process (#367)
During constant folding process, TensorFlow checks if nodes that have
constant input produces constant outputs and replaces them with constants.
In our case, it can happen as DALI op provides a deterministic output when running once
just after construction. Also, DALI op provides CPU variant so now TensorFlow
can run DALI on CPU for constant folding examination. To prevent this
DALI op needs to tell that it is stateful.
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>1 parent 1e166d9 commit 0a8503d
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments