MCPcopy Create free account
hub / github.com/conflow-dev/ConFlow / __init__

Method __init__

model_demo/DeepCrossing/layer.py:8–12  ·  view source on GitHub ↗
(self, units, activation=None, **kwargs)

Source from the content-addressed store, hash-verified

6
7class MyDense(tf.keras.layers.Layer):
8 def __init__(self, units, activation=None, **kwargs):
9 super(MyDense, self).__init__(**kwargs)
10 self.units = units
11 self.w = None
12 self.activation = activation
13
14 def build(self, input_shape):
15 self.w = self.add_weight(

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected