Remove reciprocal from monotonic decreasing ops

This commit is contained in:
Lukas Geiger 2019-02-06 02:48:31 +01:00
parent d08271d73c
commit f7fba1b59b

View File

@ -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;