MCPcopy Create free account
hub / github.com/Kaggle/docker-python / create_train_state

Method create_train_state

tests/test_flax.py:37–42  ·  view source on GitHub ↗
(rng, learning_rate, momentum)

Source from the content-addressed store, hash-verified

35 x = nn.Conv(features=64, kernel_size=(3, 3))(x)
36 x = nn.relu(x)
37 x = nn.avg_pool(x, window_shape=(2, 2), strides=(2, 2))
38 x = x.reshape((x.shape[0], -1))
39 x = nn.Dense(features=256)(x)
40 x = nn.relu(x)
41 x = nn.Dense(features=120)(x)
42 x = nn.log_softmax(x)
43 return x
44
45 def create_train_state(rng, learning_rate, momentum):

Callers

nothing calls this directly

Calls 1

CNNClass · 0.85

Tested by

no test coverage detected