Class ThreadScope#

Inheritance Relationships#

Base Type#

  • public ffi::Enum

Class Documentation#

class ThreadScope : public ffi::Enum#

Canonical thread-scope identity, named as backend.scope.

Backends register tags with EnumDef<ThreadScopeObj> and explicit backend and rank attributes. Registration order has no hierarchy semantics.

Public Types

using ContainerType = ThreadScopeObj#

Public Functions

inline explicit ThreadScope(const ffi::String &name)#
inline explicit ThreadScope(::tvm::ffi::UnsafeInit tag)#
inline const ffi::String &name() const#
inline bool operator==(const ThreadScope &other) const#
inline bool operator!=(const ThreadScope &other) const#
inline __PtrType operator->() const#
inline __PtrType get() const#

Public Static Functions

static ThreadScope Get(const ffi::String &name)#