/** * Compares tensors by their hash codes. * * @param t tensor * @return 0 if hashes are equals, 1 if hash code of this greater the hash code of specified * tensor and -1 otherwise */@Override
publicfinalint compareTo(Tensor t) {
return Integer.compare(hash(), t.hash());
}