How might one compare two tensors in Libtorch (C++) to check if they are equal?
I want to see if they are equal for an unit test, and understand in python one might:
torch.all(tens_a.eq(tens_b))

However torch::all returns a Tensor.
I simply want to achieve:
if( !torch::all(producedTensor.eq(expectedTensor)) ){
    // fails test, do something
}
else{
    // hooray, do something else
}