tensor: Create 'aria' tensor of arbitrary shapes

Description Usage Arguments Examples

View source: R/tensor.R

Description

Tensor abstraction, an interface for CPU and CUDA tensors.

Usage

1
tensor(data, dims, requires_grad = FALSE)

Arguments

data

numeric vector, array or data.frame

dims

Dimensions

requires_grad

is gradient required; logical

Examples

1
2
library(aria)
x <- tensor(1:30, c(3, 10))

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