<jupyter_start><jupyter_text>Dropout **[core.Dropout.0] should pass through**<jupyter_code>layer_0 = Input(shape=(6,))
layer_1 = Dense(2)(layer_0)
layer_2 = Dropout(0.5)(layer_1)
model = Model(inputs=layer_0, outputs=layer_2)

W = np.array([0.1, 0.4, 0.5, 0.1, 1, -2, 0, 0.3, 0.2, 0.1, 3, 0]).reshape((6, 2))
b = np.array([0.5, 0.7])
model.set_weights([W, b])

data_in = [0, 0.2, 0.5, -0.1, 1, 2]
data_in_shape = (6,)
print('in:', data_in)
print('in shape:', data_in_shape)
arr_in = np.array(data_in, dtype='float32').reshape(data_in_shape)
result = model.predict(np.array([arr_in]))
arr_out = result[0]
data_out_shape = arr_out.shape
print('out shape:', data_out_shape)
data_out = format_decimal(arr_out.ravel().tolist())
print('out:', data_out)

DATA['core.Dropout.0'] = {
    'input': {'data': data_in, 'shape': data_in_shape},
    'weights': [{'data': format_decimal(w.ravel().tolist()), 'shape': w.shape} for w in [W, b]],
    'expected': {'data': data_out, 'shape': data_out_shape}
}<jupyter_output>in: [0, 0.2, 0.5, -0.1, 1, 2]
in shape: (6,)
out shape: (2,)
out: [7.3, -0.21]<jupyter_text>export for Keras.js tests<jupyter_code>print(json.dumps(DATA))<jupyter_output>{"core.Dropout.0": {"weights": [{"data": [0.1, 0.4, 0.5, 0.1, 1.0, -2.0, 0.0, 0.3, 0.2, 0.1, 3.0, 0.0], "shape": [6, 2]}, {"data": [0.5, 0.7], "shape": [2]}], "input": {"data": [0, 0.2, 0.5, -0.1, 1, 2], "shape": [6]}, "expected": {"data": [7.3, -0.21], "shape": [2]}}}
{'fraction_non_alphanumeric': 0.26038781163434904, 'fraction_numerical': 0.0796398891966759, 'mean_word_length': 5.122881355932203, 'pattern_counts': {'":': 12, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '52603', 'license': 'MIT', 'n_tokens_mistral': 723, 'n_tokens_neox': 676, 'n_words': 140, 'path': 'notebooks/layers/core/Dropout.ipynb', 'repo_name': 'GTDev87/tpt-hackathon', 'size': '1444'}