|
TVM
0.9.4
|
#include <tvm/graph/abstract/Outputs.h>

Classes | |
| struct | Output |
Public Types | |
| enum class | Output_ |
| using | OutputParent = Outputs |
| using | OutputBase = Outputs |
Public Member Functions | |
| virtual | ~Outputs ()=default |
| template<typename EnumT > | |
| bool | isOutputEnabled (EnumT e) const |
| bool | isOutputEnabled (int i) const |
| virtual bool | isOutputStaticallyEnabled (int) const |
| virtual bool | isOutputCustomEnabled (int) const |
Static Public Member Functions | |
| static constexpr const char * | OutputName (Output_) |
| template<typename EnumT > | |
| static constexpr bool | OutputStaticallyEnabled (EnumT) |
Static Public Attributes | |
| static constexpr unsigned int | OutputSize = 0 |
| static constexpr auto | OutputBaseName = "Outputs" |
Protected Attributes | |
| bool | is_node_ = false |
Friends | |
| class | tvm::graph::CallGraph |
Outputs simply describe a list of Outputs in a strongly typed enum named Output.
An extension mechanism is used to allow extending existing outputs entities. Note that this prevent multiple-inheritance for Outputs objects (i.e. a new Outputs must follow a direct inheritance line).
Meta-information used during inheritance to retrieve the base-class output size
Meta-information regarding the class inheritance diagram
|
strong |
Base Output enumeration. Empty
|
virtualdefault |
|
inlinevirtual |
Check if an output is enabled given a custom criterion
The default implementation always returns true. This is a handle for the user to override.
Reimplemented in tvm::graph::abstract::OutputSelector< Constraint, tvm::internal::FirstOrderProvider >.
|
inline |
Check if a given output is enabled, be it at the class (static) or instance (dynamic) level).
|
inline |
Same as above, but taking int, for convenience
|
inlinevirtual |
Check if a given output is enabled at the class level (run-time).
The default implementation always returns true. The expected parameter is int to swallow the different output types.
|
inlinestaticconstexpr |
Return the name of a given output
|
inlinestaticconstexpr |
Check if a given output is enabled at the class level (compile-time)
The default implementation always returns true.
|
friend |
|
protected |
Used to avoid a dynamic cast when working on Outputs that may be tvm::data::Node
|
staticconstexpr |
Meta-information holding the name of the class to which the Output enum belong
|
staticconstexpr |
Store the size of the Output enumeration