Home / Class/ Error Class — pytorch Architecture

Error Class — pytorch Architecture

Architecture documentation for the Error class in Exception.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/vulkan/api/Exception.h lines 56–74

class Error : public std::exception {
 public:
  Error(SourceLocation source_location, std::string msg);
  Error(SourceLocation source_location, const char* cond, std::string msg);

 private:
  std::string msg_;
  SourceLocation source_location_;
  std::string what_;

 public:
  const std::string& msg() const {
    return msg_;
  }

  const char* what() const noexcept override {
    return what_.c_str();
  }
};

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free