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

Method device

web/src/runtime.ts:1474–1476  ·  view source on GitHub ↗

* Create a new DLDevice * @param deviceType The device type. * @param deviceId The device index. * @returns The created device.

(deviceType: number | string, deviceId = 0)

Source from the content-addressed store, hash-verified

1472 * @returns The created device.
1473 */
1474 device(deviceType: number | string, deviceId = 0): DLDevice {
1475 return new DLDevice(deviceType, deviceId, this.lib);
1476 }
1477
1478 /**
1479 * Create a new cpu {@link DLDevice}

Callers 8

cpuMethod · 0.95
webgpuMethod · 0.95
emptyMethod · 0.95
retValueToJSMethod · 0.95
ir_module.pyFile · 0.45
optimize_llm.pyFile · 0.45
e2e_opt_model.pyFile · 0.45
customize_opt.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected