From: Mikhail Zolotukhin Date: Wed, 1 Sep 2021 00:32:00 +0000 (-0700) Subject: [TensorExpr] Move declaration of buildErrorMessage to exception.h (#64301) X-Git-Tag: accepted/tizen/8.0/unified/20231005.095509~540 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e25634833735f26f7090d0e5341d6ad38b7eebb;p=platform%2Fupstream%2Fpytorch.git [TensorExpr] Move declaration of buildErrorMessage to exception.h (#64301) 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 --- diff --git a/torch/csrc/jit/tensorexpr/exceptions.h b/torch/csrc/jit/tensorexpr/exceptions.h index cf23bbc..7194dfe 100644 --- a/torch/csrc/jit/tensorexpr/exceptions.h +++ b/torch/csrc/jit/tensorexpr/exceptions.h @@ -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 diff --git a/torch/csrc/jit/tensorexpr/kernel.h b/torch/csrc/jit/tensorexpr/kernel.h index bdb9802..4b92b02 100644 --- a/torch/csrc/jit/tensorexpr/kernel.h +++ b/torch/csrc/jit/tensorexpr/kernel.h @@ -300,8 +300,6 @@ TORCH_API void annotateInputShapes( TORCH_API std::shared_ptr removeUnusedSelfArgument( const std::shared_ptr& graph); -TORCH_API std::string buildErrorMessage(const std::string& s); - } // namespace tensorexpr } // namespace jit } // namespace torch