tvm
|
A cache of VirtualDevices
. This can be used:
More...
#include <virtual_device.h>
Public Member Functions | |
VirtualDevice | Make (int device_type=kInvalidDeviceType, int virtual_device_id=-1, Target target={}, MemoryScope memory_scope={}) |
Returns the unique VirtualDevice representing given fields. More... | |
VirtualDevice | Unique (const VirtualDevice &virtual_device) |
Returns the unique VirtualDevice structurally equal to the given virtual_device . More... | |
A cache of VirtualDevices
. This can be used:
VirtualDevices
are pointer equal if and only if they are structurally equal. This simplifies the unification of 'device domains' which are built on VirtualDevices
. VirtualDevice tvm::VirtualDeviceCache::Make | ( | int | device_type = kInvalidDeviceType , |
int | virtual_device_id = -1 , |
||
Target | target = {} , |
||
MemoryScope | memory_scope = {} |
||
) |
Returns the unique VirtualDevice
representing given fields.
VirtualDevice tvm::VirtualDeviceCache::Unique | ( | const VirtualDevice & | virtual_device | ) |
Returns the unique VirtualDevice
structurally equal to the given virtual_device
.