AI-Toolbox
AI-Toolbox copied to clipboard
Variable weights "alpha" needs to be converted correctly !
You need to convert alpha as below to make it work with Tensorflow 2. Assuming alpha input as a list:
alpha = np.array(alpha).reshape(len(alpha), 1) alpha = tf.convert_to_tensor(alpha, dtype=tf.float32)
Steve