Description Usage Arguments Value Examples
There is not equivalent function in PyTorch for this generic.
To generate this generic we use the function np$logical_and()
.
1 2 | ## S3 method for class 'torch.Tensor'
x & y
|
x |
tensor |
y |
tensor |
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
.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.