diff options
author | Mingsheng Hong <hongm@google.com> | 2018-10-05 10:31:23 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-10-05 10:35:34 -0700 |
commit | d493a7f2fdbbc29a292741135f4c1598352e876b (patch) | |
tree | ad894183d0c747c76b4dd53d7a96180515ea6b14 /tensorflow/core/graph/control_flow.cc | |
parent | 8b7c789e7401fe56b4f648a04f675a3cb69119e5 (diff) |
When running a native/builtin op via eager C API, automatically fill in default
attr values that are not overridden e.g. transpose_a in the matmul op).
This is required for backward compatibility (a binary built via an older version
of TF should still run on a newer version of TF, where some ops may have added
attrs).
For non-eager graph building, the default attr values of graph ops are added by
tensorflow::AddDefaultsToNodeDef().
We ran into this issue when running the same S4TF test cases via eager APIs --
some tests failed due to "missing attrs", but are fixed by this patch.
PiperOrigin-RevId: 215927271
Diffstat (limited to 'tensorflow/core/graph/control_flow.cc')
0 files changed, 0 insertions, 0 deletions