diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-06-07 07:11:36 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-07 07:15:50 -0700 |
commit | 85355f0159430253c7d5bc5b5b12204eafea573f (patch) | |
tree | a2b4b34d611891e0d82be6a236a7205c3de9e94c /tensorflow/core/grappler/costs/virtual_scheduler.cc | |
parent | 3cf88d390c73d99a45ffc19d3e0c338e3cf46715 (diff) |
Add missing header inclusion
PiperOrigin-RevId: 158265934
Diffstat (limited to 'tensorflow/core/grappler/costs/virtual_scheduler.cc')
-rw-r--r-- | tensorflow/core/grappler/costs/virtual_scheduler.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tensorflow/core/grappler/costs/virtual_scheduler.cc b/tensorflow/core/grappler/costs/virtual_scheduler.cc index dfa8c768e7..bf352baa45 100644 --- a/tensorflow/core/grappler/costs/virtual_scheduler.cc +++ b/tensorflow/core/grappler/costs/virtual_scheduler.cc @@ -14,6 +14,9 @@ limitations under the License. ==============================================================================*/ #include "tensorflow/core/grappler/costs/virtual_scheduler.h" + +#include <math.h> + #include "tensorflow/core/framework/attr_value.pb.h" #include "tensorflow/core/framework/node_def.pb.h" #include "tensorflow/core/grappler/clusters/utils.h" @@ -226,7 +229,9 @@ void VirtualScheduler::MaybeUpdateInputOutput(const NodeDef* node) { } float VirtualScheduler::Round2(const float x) const { - return std::round(100.0 * x) / 100.0; + // Not using std::round from <cmath> here because not all platforms seem to + // support that (specifically Android). + return ::round(100.0 * x) / 100.0; } bool VirtualScheduler::IsPersistentNode(const NodeDef* node) const { |