--- theano/printing.py.orig 2020-11-14 20:22:36.000000000 -0700
+++ theano/printing.py 2020-11-23 16:00:21.019907292 -0700
@@ -1358,7 +1358,7 @@ def hex_digest(x):
Returns a short, mostly hexadecimal hash of a numpy ndarray
"""
assert isinstance(x, np.ndarray)
- rval = hashlib.sha256(x.tostring()).hexdigest()
+ rval = hashlib.sha256(x.tobytes()).hexdigest()
# hex digest must be annotated with strides to avoid collisions
# because the buffer interface only exposes the raw data, not
# any info about the semantics of how that data should be arranged