less-than-.torch.Tensor: Is a tensor less than another tensor

Description Usage Arguments Value Examples

Description

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

Usage

1
2
## S3 method for class 'torch.Tensor'
a < b

Arguments

a

tensor

b

tensor

Value

A tensor of booleans representing the logical result of the comparison. False to represent 0, and True to represent 1 in a tensor of data type torch$uint8.

Examples

1
2
3
4
5
6
7
## Not run: 
A <- torch$ones(28L, 28L)
C <- A * 0.5
A < C


## End(Not run)

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