I have been using tensorflow For neutral network
Kintu, TF - have built value for fingerprint:
the fingerprint method is farmhash64
FarmHash64 provides a portable 64-bit hash function for strings (byte array). The function mix the input bits thoroughly but is not suitable for cryptography.
FarmHash64 by default, which provides a consistent hashed output
# Importing the library import tensorflow as tf # Initializing the input data = tf.constant([[1, 2], [ 3, 4]]) method = 'farmhash64' # Calculating result res = tf.fingerprint(data, method) # Printing the result print('res: ', res)