grapes-times-times-grapes: Matrix/Tensor multiplication of two tensors

Description Usage Arguments Value Examples

Description

This generic is similar to torch$matmul(a, b)

Usage

1
a %**% b

Arguments

a

tensor

b

tensor

Value

a scalar or a tensor

Examples

1
2
3
4
5
6
## Not run: 
p <- torch$randn(3L)
q <- torch$randn(3L)
p %**% q

## End(Not run)

rTorch documentation built on Jan. 13, 2021, 4:32 p.m.