-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this work with fit_generator
?
#41
Comments
No idea, haven't really used Keras |
@yaroslavvb Just so I know, is a neural net supposed to train slower when using your |
I wish it could train faster and use less memory. Alas, you trade compute for memory. There are concrete numbers in the README.me |
@yaroslavvb I've tried downgrading from tf-1.8 to 1.5 and still can't get it to work. I'm on Windows 10 and my task manager doesn't show any less memory being utilized when I use memory_saving_gradients. Right now, I am on tensorflow 1.5 with keras 2.1.6 using python 3.5 x64-bit. I make sure to use the tensorflow implementation of keras backend (from tensorflow.python.keras._impl.keras import backend as K) as well as the tensorflow keras backend modules for keras layers. I define my model, add gradient checkpointing for several convolutional and fully-connected layers, then compile the model in a function called get_model. Here is all my code. I haven't put down a bunch of my pandas functions for dataset manipulations, but if for some reason you think they'd be important let me know and I'll post them here. Here is the meat of my code. I don't feel like I'm doing anything too out of the ordinary, but still can't get your code to work. This model still takes up the same memory as it had before and takes just as long per epoch, with or without
|
@yaroslavvb Does this work with Keras
fit_generator
? I saw you usedfit
, but do you know if it will work withfit_generator
?The text was updated successfully, but these errors were encountered: