Skip to content

Commit

Permalink
PR #59775: Fix tensor_or_memref build error without math.h
Browse files Browse the repository at this point in the history
Imported from GitHub PR tensorflow/tensorflow#59775

tensorflow/tensorflow#59536 (comment)

Since pevious PR has been rolled back, this one adopted reviewer's feedback to fix Mac build error.

Thanks @reedwm for the feedback and suggestion!
Copybara import of the project:

--
4f9f856e0159f5dd7c4e8d0e3b5232e55795f700 by Chao Chen <cchen104@amd.com>:

fix tensor_or_memref build error without math.h

Merging this change closes #59775

PiperOrigin-RevId: 511716904
  • Loading branch information
i-chaochen authored and TensorFlow MLIR Team committed Feb 23, 2023
1 parent a319dfe commit d139fcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/mlir_interpreter/framework/tensor_or_memref.h
Expand Up @@ -16,6 +16,8 @@ limitations under the License.
#ifndef MLIR_HLO_TOOLS_MLIR_INTERPRETER_FRAMEWORK_TENSOR_OR_MEMREF_H_
#define MLIR_HLO_TOOLS_MLIR_INTERPRETER_FRAMEWORK_TENSOR_OR_MEMREF_H_

#include <math.h>

#include <cstddef>
#include <cstdint>
#include <iterator>
Expand Down

0 comments on commit d139fcd

Please sign in to comment.