Skip to content
Advertisement

How can I see the model as visualized?

I am trying to do some sample code of GAN, here comes the generator.

I want to see the visualized model but, this is not the model.

Model.summary() is not the function of but it is ?? if so how can I see visualized model??

JavaScript

My function is here.

JavaScript

Advertisement

Answer

One possible solution (or an idea) is to wrap your operation into the Lambda layer and use it to build the model. Something like

JavaScript

But it’s not the general solution (AFAIK), and also while it is possible to use Variables with Lambda layers, this practice is discouraged as it can easily lead to bugs. And that exactly what we’ve encountered when trying to wrap your generator function into the Lambda layer. Here what we’ve tried and received:

JavaScript
JavaScript

Wrapping to the Lambda layer

For that, we received such a warning, a potential bug.

JavaScript
JavaScript
JavaScript

tf.Variables are not present in the tracked objects.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement