MCPcopy Index your code
hub / github.com/apache/tvm / cpu

Function cpu

python/tvm/runtime/_tensor.py:356–369  ·  view source on GitHub ↗

Construct a CPU device Parameters ---------- dev_id : int, optional The integer device id Returns ------- dev : Device The created device

(dev_id=0)

Source from the content-addressed store, hash-verified

354
355
356def cpu(dev_id=0):
357 """Construct a CPU device
358
359 Parameters
360 ----------
361 dev_id : int, optional
362 The integer device id
363
364 Returns
365 -------
366 dev : Device
367 The created device
368 """
369 return device(DLDeviceType.kDLCPU, dev_id)
370
371
372def cuda(dev_id=0):

Callers 3

__call__Method · 0.90
emptyFunction · 0.85
tensorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected