is_in_pointer_list: Check if externaptr object occurs in the given list of...

Description Usage Arguments Examples

View source: R/utils.R

Description

Check if externaptr object occurs in the given list of externalptrs

Usage

1
is_in_pointer_list(ptr, ptr.list)

Arguments

ptr

externalptr object

ptr.list

list of externalptr objects

Examples

1
2
3
4
5
6
7
8
library(aria)
ctx <- get_context()
register_ops(ctx, cars)
register_ops(ctx, data.frame)
x <- cpu_tensor(5, dims = 1)
y <- x ** 3
all_ops <- get_all_ops_ptr(ctx)
is_in_pointer_list(aria$xptr,  all_ops)

krzjoa/aria documentation built on Oct. 1, 2020, 12:48 p.m.