few changes due to the torch version inconsistency in summarization example
This small change intends to fix the issue #2297.
it's generally a version inconsistent issue.
in ver 1.1.0, torch.gt outputs:

_torch.gt(torch.tensor([[1, 2], [3, 4]]), torch.tensor([[1, 1], [4, 4]]))
tensor([[ 0, 1],
[ 0, 0]], dtype=torch.uint8)_

while in ver 1.2.0, it outputs:

_torch.ge(torch.tensor([[1, 2], [3, 4]]), torch.tensor([[1, 1], [4, 4]]))
tensor([[True, True], [False, True]])_

Thus, I added a version checking function, and revise the tensor type in tensor.gt()
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
