Closed pranavvaidik closed 4 years ago
…ng with previous versions.
'tf.norm' function this code uses was moved to 'tf.compat.v1.norm' in Tensorflow 2. Added an if statement to check for version ahead, so an error does not occur in case the user is using the later versions of Tensorflow.
Thanks; however, the function is not deprecated -- only keep_dims needs changing to keepdims. I've pushed my own fix to master.
keep_dims
keepdims
…ng with previous versions.
'tf.norm' function this code uses was moved to 'tf.compat.v1.norm' in Tensorflow 2. Added an if statement to check for version ahead, so an error does not occur in case the user is using the later versions of Tensorflow.