Skip to content

Conversation

@jskDr
Copy link
Contributor

@jskDr jskDr commented May 17, 2017

Code for dividing an integer to get an integer result is changed to work appropriately.
E.g., hidden_dim / 4 --> int(hidden_dim / 4)

jskDr added 3 commits May 17, 2017 10:41
For Keras2 'convolution2d' is changed to 'conv2d' for better compatibility with a new Keras tool.
@bstriner
Copy link
Owner

Trying to keep compatibility w/ Keras 1 and 2 is a pain but I have them both running on Travis. Need to make Travis run more of the examples though.

I've been putting compatibility in keras_adversarial.legacy for the examples. For example, keras_adversarial.legacy.fit(model, epochs=10) will model.fit(epochs=10) if Keras 2 or model.fit(nb_epoch=10) if Keras 1.

Haven't had a chance to update everything with legacy though. Also need legacy functions for convolutional changes, etc.

@bstriner bstriner mentioned this pull request Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants