AI-Toolbox icon indicating copy to clipboard operation
AI-Toolbox copied to clipboard

Variable weights "alpha" needs to be converted correctly !

Open thusinh1969 opened this issue 2 years ago • 0 comments

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

thusinh1969 avatar Sep 26 '21 22:09 thusinh1969