Closed aistrych closed 1 year ago
@Astrych Are you looking to use float32? I am able to run the sample code by explicitly setting float32.
@srinarayan-srikanthan Do you mean
a = tf.Variable(np.random.rand(1, 4, 2), dtype=tf.float32)
? I was sure I've checked this already but maybe not. I will recheck it later today.
OK, it works with added dtype=tf.float32
. Thanks!
Used packages:
intel-extension-for-tensorflow==1.2.0 tensorflow==2.12.0 keras==2.12.0
example code:
received errors:
Replacing float32 with int32 works fine. Also running it on CPU works fine.