Managed reference class to SEScopeNode
.
More...
#include <se_scope.h>
|
static SEScope | FullyUnconstrained () |
| Returns the unique fully unconstrained SEScope . More...
|
|
static SEScope | ForDeviceType (DLDeviceType device_type, int virtual_device_id=-1) |
| Returns the SEScope for device_type and (if not -1) virtual_device_id . The target and memory scope will be unconstrained. More...
|
|
static SEScope | ForDeviceType (int device_type, int virtual_device_id=-1) |
|
static SEScope | ForDeviceType (const Integer &device_type, int virtual_device_id=-1) |
|
static SEScope | ForDevice (const Device &device) |
| Returns the SEScope for device . More...
|
|
static SEScope | ForDeviceAndTarget (const Device &device, Target target) |
| Returns the SEScope for device and target . More...
|
|
static SEScope | ForDeviceTargetAndMemoryScope (const Device &device, Target target, MemoryScope memory_scope) |
| Returns the SEScope for device , target and memory_scope . More...
|
|
static Optional< SEScope > | Join (const SEScope &lhs, const SEScope &rhs) |
| Returns the 'join' of lhs and rhs . The result will agree pointwise with lhs and rhs on all their constrained fields. Returns the null optional if no such join exists, ie there's disagreement on at least one constrained field. More...
|
|
static SEScope | Default (const SEScope &lhs, const SEScope &rhs) |
| Returns the 'default' of lhs and rhs . The result will be lhs , except any unconstrained fields in lhs will take their value from rhs . Always well-defined. More...
|
|
Managed reference class to SEScopeNode
.
- See also
- SEScopeNode.
◆ SEScope()
Construct an SEScope.
- Parameters
-
device_type | The device type for the virtual device, or kInvalidDeviceType if unconstrained. If target is defined then must match its target->kind->device_type . |
virtual_device_id | The device id for the virtual device, or -1 if unconstrained. |
target | The target describing how to compile for the virtual device, or null if unconstrained. |
memory_scope | The memory scope w.r.t. the virtual device which holds data, or "" if unconstrained. |
- Returns
- The SEScope
◆ Default()
Returns the 'default' of lhs
and rhs
. The result will be lhs
, except any unconstrained fields in lhs
will take their value from rhs
. Always well-defined.
◆ ForDevice()
◆ ForDeviceAndTarget()
Returns the SEScope
for device
and target
.
◆ ForDeviceTargetAndMemoryScope()
Returns the SEScope
for device
, target
and memory_scope
.
◆ ForDeviceType() [1/3]
static SEScope tvm::SEScope::ForDeviceType |
( |
DLDeviceType |
device_type, |
|
|
int |
virtual_device_id = -1 |
|
) |
| |
|
inlinestatic |
Returns the SEScope
for device_type
and (if not -1) virtual_device_id
. The target and memory scope will be unconstrained.
◆ ForDeviceType() [2/3]
static SEScope tvm::SEScope::ForDeviceType |
( |
int |
device_type, |
|
|
int |
virtual_device_id = -1 |
|
) |
| |
|
inlinestatic |
◆ ForDeviceType() [3/3]
static SEScope tvm::SEScope::ForDeviceType |
( |
const Integer & |
device_type, |
|
|
int |
virtual_device_id = -1 |
|
) |
| |
|
inlinestatic |
◆ FullyUnconstrained()
static SEScope tvm::SEScope::FullyUnconstrained |
( |
| ) |
|
|
static |
Returns the unique fully unconstrained SEScope
.
◆ Join()
Returns the 'join' of lhs
and rhs
. The result will agree pointwise with lhs
and rhs
on all their constrained fields. Returns the null optional if no such join exists, ie there's disagreement on at least one constrained field.
◆ TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS()
◆ SEScopeCache
The documentation for this class was generated from the following file: