from keras.models import Sequential
from keras.layers import Dense, Activation
import numpy as np
model = Sequential([
Dense(5, input_dim=10),
Activation('relu')
])
model2 = Sequential([
Dense(5, input_dim=10, activation='relu')
])
model2.layers[0].set_weights(model.layers[0].get_weights())
dummy_data = np.array([[1, 2, 3, -400, 5, 6, 7, -8, -9000, 10]])
prediction = model.predict(dummy_data)
prediction2 = model2.predict(dummy_data)
print("Prediction:", prediction)
print("Prediction2:", prediction2)
ZnJvbSBrZXJhcy5tb2RlbHMgaW1wb3J0IFNlcXVlbnRpYWwKZnJvbSBrZXJhcy5sYXllcnMgaW1wb3J0IERlbnNlLCBBY3RpdmF0aW9uCmltcG9ydCBudW1weSBhcyBucAoKbW9kZWwgPSBTZXF1ZW50aWFsKFsKICAgIERlbnNlKDUsIGlucHV0X2RpbT0xMCksCiAgICBBY3RpdmF0aW9uKCdyZWx1JykKXSkKCm1vZGVsMiA9IFNlcXVlbnRpYWwoWwogICAgRGVuc2UoNSwgaW5wdXRfZGltPTEwLCBhY3RpdmF0aW9uPSdyZWx1JykKXSkKCm1vZGVsMi5sYXllcnNbMF0uc2V0X3dlaWdodHMobW9kZWwubGF5ZXJzWzBdLmdldF93ZWlnaHRzKCkpCgpkdW1teV9kYXRhID0gbnAuYXJyYXkoW1sxLCAyLCAzLCAtNDAwLCA1LCA2LCA3LCAtOCwgLTkwMDAsIDEwXV0pCgpwcmVkaWN0aW9uID0gbW9kZWwucHJlZGljdChkdW1teV9kYXRhKQpwcmVkaWN0aW9uMiA9IG1vZGVsMi5wcmVkaWN0KGR1bW15X2RhdGEpCgpwcmludCgiUHJlZGljdGlvbjoiLCBwcmVkaWN0aW9uKQpwcmludCgiUHJlZGljdGlvbjI6IiwgcHJlZGljdGlvbjIp