elementwise addition

# S3 method for tensor
+(x, y)

Arguments

x

tensor object

y

tensor object

Examples

x <- tensor(1) y <- tensor(2) x + y
#> tensor #> 3 #> [ Variable[CPUFloatType]{1} ]
x + 1
#> tensor #> 2 #> [ Variable[CPUFloatType]{1} ]