adjacency_matrix: Creat adjacency matrix for all the operations in the context

Description Usage Arguments Examples

View source: R/visualize.R

Description

Creat adjacency matrix for all the operations in the context

Usage

1

Arguments

ctx

aria_context object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(aria)
ctx <- get_context()
register_ops(ctx, cars)
register_ops(ctx, data.frame)
x <- cpu_tensor(5, dims = 1)
y <- x ** 3
y <- (x ** 3) / 2
all.ops <- get_all_ops_ptr(ctx)
adj_mat <- adjacency_matrix(ctx)
print(adj_mat)
plot(adj_mat)

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