set int tensor as a result of comparison, added tests
fixed compilation