MCPcopy Create free account
hub / github.com/tensorflow/models / TestModel

Class TestModel

official/core/actions_test.py:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29
30class TestModel(tf_keras.Model):
31
32 def __init__(self):
33 super().__init__()
34 self.value = tf.Variable(0.0)
35 self.dense = tf_keras.layers.Dense(2)
36 _ = self.dense(tf.zeros((2, 2), tf.float32))
37
38 def call(self, x, training=None):
39 return self.value + x
40
41
42class ActionsTest(tf.test.TestCase, parameterized.TestCase):

Callers 2

test_pruningMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_pruningMethod · 0.56