set_device_context: Set Context for Specific Device Type

View source: R/test_utils.R

set_device_contextR Documentation

Set Context for Specific Device Type

Description

This function find the first context that contains a device of the specified type.

Usage

set_device_context(type)

Arguments

type

A character vector specifying device type

Value

An integer indicating previous context index


gpuR documentation built on May 29, 2024, 11:56 a.m.