added conversion to int from boolean tensors