Skip to content

Commit

Permalink
Move kTvmExecutor consts to runtime and fix improper references.
Browse files Browse the repository at this point in the history
  • Loading branch information
areusch committed Dec 13, 2021
1 parent 010d181 commit 66cc5a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions include/tvm/relay/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ class AttrRegistry;

namespace relay {

/*! \brief Value used with Runtime::name to indicate the C++ runtime. */
static constexpr const char* kTvmRuntimeCpp = "cpp";

/*! \brief Value used with Runtime::name to indicate the C runtime. */
static constexpr const char* kTvmRuntimeCrt = "c";

/*!
* \brief Runtime information.
*
Expand Down
6 changes: 0 additions & 6 deletions include/tvm/target/target_kind.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,6 @@ class TargetKindAttrMap : public AttrRegistryMap<TargetKind, ValueType> {
explicit TargetKindAttrMap(const AttrRegistryMapContainerMap<TargetKind>& map) : TParent(map) {}
};

/*! \brief Value used with --runtime in target specs to indicate the C++ runtime. */
static constexpr const char* kTvmRuntimeCpp = "c++";

/*! \brief Value used with --runtime in target specs to indicate the C runtime. */
static constexpr const char* kTvmRuntimeCrt = "c";

/*!
* \brief Helper structure to register TargetKind
* \sa TVM_REGISTER_TARGET_KIND
Expand Down

0 comments on commit 66cc5a8

Please sign in to comment.