Reproducing Fully-Connected Sequential Layer

Viewed 61

I want to better understand how to make custom keras layers but I can't seem to find the following online.... I'm looking to learn how to reproduct the basic (feed-forward) keras layer using the custom layers construction.

Where can I find this online or how do I do it?

I ask since all online resources that I came across only do other simpler layers as examples.

1 Answers

You need to subclass the tf.keras.layers.Layer class. The SimpleDense layer is given as an example here.

Related