Remove reciprocal from monotonic decreasing ops
This commit is contained in:
parent
d08271d73c
commit
f7fba1b59b
@ -184,8 +184,7 @@ bool IsElementWiseMonotonic(const NodeDef& node, bool* is_non_decreasing) {
|
||||
"Sign", "Sinh", "Softsign", "Softplus", "Sqrt", "Tanh",
|
||||
}));
|
||||
static const gtl::FlatSet<string>* const kMonotonicNonIncreasingOps =
|
||||
CHECK_NOTNULL((new gtl::FlatSet<string>{"Acos", "Erfc", "Inv", "Neg",
|
||||
"Reciprocal", "Rsqrt"}));
|
||||
CHECK_NOTNULL((new gtl::FlatSet<string>{"Acos", "Erfc", "Neg", "Rsqrt"}));
|
||||
if (kMonotonicNonDecreasingOps->count(node.op()) > 0) {
|
||||
if (is_non_decreasing) {
|
||||
*is_non_decreasing = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user