Closed Louis-Pujol closed 8 months ago
Hello @Louis-Pujol ,
This is now done in the main branch. I have added <
, >
, <=
, >=
, ==
and !=
; it works between two instances of LazyTensor
or one LazyTensor
and a int
or float
.
Thanks @joanglaunes !
Hi !
I wonder if it would be possible to add support for comparison operators between LazyTensors and numbers. The following code :
leads to the error message
TypeError: '<=' not supported between instances of 'LazyTensor' and 'float'
, whileD_ij = (threshold - D_ij).step()
do what was expected (D_ij
acts as a boolean tensor, encoded with 0s and 1s).Thanks,