You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have unit tests for Convolution1DReparameterization , Convolution1DReparameterization etc. that basically look like this
x = tf.ones(shape = [150,1])
y = tf.ones(shape = [150])
model = tf.keras.Sequential(
[tfpl.DenseReparameterization(
units = 512,
activation = "relu"),
tfpl.DenseReparameterization(
units = 1)])
model.compile(optimizer = 'adam', loss = "mse")
model.fit(x, y, steps_per_epoch = 1)
These run fine with TF 1, but with TF 2 preview I get
_SymbolicException: Inputs to eager execution function cannot be Keras symbolic tensors, but found [<tf.Tensor 'sequential/dense_reparameterization/divergence_kernel:0' shape=() dtype=float32>, <tf.Tensor 'sequential/dense_reparameterization_1/divergence_kernel:0' shape=() dtype=float32>]
Would you happen to know what is the cause here?
Are these "old-style" variational layers supposed to run with TF 2?