tvm
Public Member Functions | Static Public Member Functions | List of all members
tvm::relay::FeatureSet Class Reference

A finite set of Feature. More...

#include <feature.h>

Collaboration diagram for tvm::relay::FeatureSet:

Public Member Functions

 FeatureSet (const FeatureSet &)=default
 
 FeatureSet (Feature ft)
 A singleton set containing a single Feature. More...
 
 FeatureSet (const tvm::Array< tvm::Integer > &ft)
 
 operator Array< Integer > () const
 
template<typename T >
FeatureSetoperator+= (const T &rhs)
 
template<typename T >
FeatureSet operator+ (const T &rhs) const
 Set union. More...
 
template<typename T >
FeatureSetoperator-= (const T &rhs)
 
template<typename T >
FeatureSet operator- (const T &rhs) const
 Set difference. More...
 
bool is_subset_of (const FeatureSet &rhs) const
 Is this a subset of rhs? More...
 
std::string ToString () const
 return a string representation. More...
 

Static Public Member Functions

static FeatureSet All ()
 A set that contain all the Feature. More...
 
static FeatureSet No ()
 The empty set. Contain no Feature. More...
 

Detailed Description

A finite set of Feature.

Constructor & Destructor Documentation

◆ FeatureSet() [1/3]

tvm::relay::FeatureSet::FeatureSet ( const FeatureSet )
default

◆ FeatureSet() [2/3]

tvm::relay::FeatureSet::FeatureSet ( Feature  ft)
inlineexplicit

A singleton set containing a single Feature.

◆ FeatureSet() [3/3]

tvm::relay::FeatureSet::FeatureSet ( const tvm::Array< tvm::Integer > &  ft)
inlineexplicit

Member Function Documentation

◆ All()

static FeatureSet tvm::relay::FeatureSet::All ( )
inlinestatic

A set that contain all the Feature.

◆ is_subset_of()

bool tvm::relay::FeatureSet::is_subset_of ( const FeatureSet rhs) const
inline

Is this a subset of rhs?

Parameters
rhsanother FeatureSet.
Returns
true only if this is a subset of rhs.

◆ No()

static FeatureSet tvm::relay::FeatureSet::No ( )
inlinestatic

The empty set. Contain no Feature.

◆ operator Array< Integer >()

tvm::relay::FeatureSet::operator Array< Integer > ( ) const
inlineexplicit

◆ operator+()

template<typename T >
FeatureSet tvm::relay::FeatureSet::operator+ ( const T &  rhs) const
inline

Set union.

◆ operator+=()

template<typename T >
FeatureSet& tvm::relay::FeatureSet::operator+= ( const T &  rhs)
inline

◆ operator-()

template<typename T >
FeatureSet tvm::relay::FeatureSet::operator- ( const T &  rhs) const
inline

Set difference.

◆ operator-=()

template<typename T >
FeatureSet& tvm::relay::FeatureSet::operator-= ( const T &  rhs)
inline

◆ ToString()

std::string tvm::relay::FeatureSet::ToString ( ) const

return a string representation.


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