I'm trying to make variational autoencoder, and debugging my code.
I have a Tensor x_label1
which is a Tensor("decoder_4/dense_36/BiasAdd:0", shape=(19185, 74), dtype=float32)
.
But I would like to print this to see all of the values like numpy array.
Is there a way to convert a Tensor into a Numpy array?
Here is my code: https://pastebin.com/7BNbwcxw
I defined x_label1
as:
z_sampled_test = Lambda(sampling, output_shape=(latent_dim,), name='z')([z_mean_encoded, z_log_var_encoded])
x_label1 = decoder(z_sampled_test)