Overloads negative operator for a single tensor.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(in) | :: | tensor |
Tensor to take the negative of |
Tensor to hold the negative values
Overloads subtraction operator for two tensors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(torch_tensor), | intent(in) | :: | tensor1 |
First tensor for the subtraction |
||
type(torch_tensor), | intent(in) | :: | tensor2 |
Second tensor for the subtraction |
Tensor to hold the difference