%.*% {rTorch}R Documentation

#' @export "round.torch.Tensor" <- function(input) # round: Returns a new tensor with each of the elements of input rounded to the closest integer. torch$round(input) Dot product of two tensors

Description

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

Usage

a %.*% b

Arguments

a

tensor

b

tensor

Value

a scalar

Examples

## Not run: 
p <- torch$Tensor(list(2, 3))
q <- torch$Tensor(list(2, 1))
p %.*% q

## End(Not run)


[Package rTorch version 0.4.2 Index]