Managed reference class to TargetObj.
More...
#include <target.h>
Managed reference class to TargetObj.
- See also
- TargetObj
◆ Target() [1/4]
| TVM_TIRX_DLL tvm::Target::Target |
( |
const ffi::String & |
tag_or_config_or_target_str | ) |
|
|
explicit |
Construct a Target given a string.
- Parameters
-
| tag_or_config_or_target_str | the string to parse for target |
◆ Target() [2/4]
| TVM_TIRX_DLL tvm::Target::Target |
( |
const ffi::Map< ffi::String, ffi::Any > & |
config | ) |
|
|
explicit |
Construct a Target using a JSON-like configuration.
- Parameters
-
| config | The JSON-like configuration for target |
◆ Target() [3/4]
| tvm::Target::Target |
( |
Target |
target, |
|
|
ffi::Optional< Target > |
host |
|
) |
| |
|
inlineexplicit |
Construct a Target given target and host.
- Parameters
-
| target | The Target typed object with host field undefined for target |
| host | The Target typed object for target host |
◆ Target() [4/4]
| tvm::Target::Target |
( |
ffi::UnsafeInit |
tag, |
|
|
ffi::ObjectPtr< TargetObj > |
n |
|
) |
| |
|
inlineexplicit |
◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()
| tvm::Target::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE |
( |
Target |
, |
|
|
ffi::ObjectRef |
, |
|
|
TargetObj |
|
|
) |
| |
◆ WithHost()
◆ WithoutHost()
| Target tvm::Target::WithoutHost |
( |
| ) |
const |
|
inline |
- Returns
- The target with the host stripped out
◆ TargetInternal
| friend class TargetInternal |
|
friend |
The documentation for this class was generated from the following file:
- 3rdparty/tvm-tirx/include/tvm/target/target.h