裝置與串流

裝置與串流#

Device(*args, **kwargs)

用於執行操作的裝置。

Stream

在指定裝置上執行操作的串流。

default_device()

取得預設裝置。

set_default_device(device)

設定預設裝置。

default_stream(device)

取得裝置的預設串流。

new_stream(device)

在指定裝置上建立新的串流。

set_default_stream(stream)

設定預設串流。

stream(s)

建立內容管理器以設定預設裝置與串流。

synchronize([stream])

與指定串流同步。

device_count(device_type)

Get the number of available devices for the given device type.

device_info([d])

Get information about a device.