tkonolige commented on a change in pull request #7153:
URL: https://github.com/apache/tvm/pull/7153#discussion_r552976482



##########
File path: include/tvm/support/logging.h
##########
@@ -113,35 +119,171 @@
 
 namespace tvm {
 
+std::string backtrace();
+
+struct Error : public std::runtime_error {
+  explicit Error(const std::string &s) : std::runtime_error(s) {}
+};
+
+class InternalError : public std::exception {
+ public:
+  InternalError(const std::string& file, int lineno, const std::string& 
message,
+        const std::time_t& time = std::time(nullptr), std::string stacktrace = 
backtrace())

Review comment:
       I think it makes more sense to keep this error specific to TVM. It 
prints a message about how to report internal errors to the TVM discuss.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to