[TensorExpr] Move declaration of buildErrorMessage to exception.h (#64301)
authorMikhail Zolotukhin <mvz@fb.com>
Wed, 1 Sep 2021 00:32:00 +0000 (17:32 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 1 Sep 2021 00:37:29 +0000 (17:37 -0700)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64301

Test Plan: Imported from OSS

Reviewed By: navahgar, huiguoo

Differential Revision: D30678215

Pulled By: ZolotukhinM

fbshipit-source-id: 599c83b3890450a0fb6526815f037eec9563661c

torch/csrc/jit/tensorexpr/exceptions.h
torch/csrc/jit/tensorexpr/kernel.h

index cf23bbc..7194dfe 100644 (file)
@@ -84,6 +84,8 @@ class malformed_ir : public std::runtime_error {
             "MALFORMED IR: " + err + " - " + std::to_string(stmt)) {}
 };
 
+TORCH_API std::string buildErrorMessage(const std::string& s);
+
 } // namespace tensorexpr
 } // namespace jit
 } // namespace torch
index bdb9802..4b92b02 100644 (file)
@@ -300,8 +300,6 @@ TORCH_API void annotateInputShapes(
 TORCH_API std::shared_ptr<Graph> removeUnusedSelfArgument(
     const std::shared_ptr<Graph>& graph);
 
-TORCH_API std::string buildErrorMessage(const std::string& s);
-
 } // namespace tensorexpr
 } // namespace jit
 } // namespace torch