tvm
Public Member Functions | Friends | List of all members
tvm::relay::ErrorBuilder Struct Reference

A wrapper around std::stringstream to build error. include/tvm/ir/type.h Can be consumed by CompileError to construct an error. More...

#include <error.h>

Collaboration diagram for tvm::relay::ErrorBuilder:

Public Member Functions

template<typename T >
ErrorBuilderoperator<< (const T &val)
 

Friends

class CompileError
 

Detailed Description

A wrapper around std::stringstream to build error. include/tvm/ir/type.h Can be consumed by CompileError to construct an error.

void ReportError(const CompileError& err);
void Test(int number) {
// Use error reporter to construct an error.
ReportError(ErrorBuilder() << "This is an error number=" << number);
}
friend class CompileError
Definition: error.h:57

Member Function Documentation

◆ operator<<()

template<typename T >
ErrorBuilder& tvm::relay::ErrorBuilder::operator<< ( const T &  val)
inline

Friends And Related Function Documentation

◆ CompileError

friend class CompileError
friend

The documentation for this struct was generated from the following file: