Description Usage Arguments Value Examples
This generic is approximately similar to torch$eq(a, b)
, with the
difference that the generic returns a tensor of booleans instead of
a tensor of data type torch$uint8
.
1 2 | ## S3 method for class 'torch.Tensor'
x == y
|
x |
tensor |
y |
tensor |
A tensor of booleans, where False corresponds to 0, and 1 to True
in a tensor of data type torch$bool
.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.