-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
reorganize training.py, code is clearer and handles more corner cases… #7072
Conversation
… to prevent crashes
@fchollet can we take the next steps on this PR and its dependencies? They are valid error detection and reporting improvements independent of the API Design Review #7102 since they leave the API unchanged. Here is a good order to look at them that accounts for deps:
|
* mnist_tfrecord: mnist_tfrecord.py loss defaults to None in compile() lower batch size and epochs mnist_tfrecord.py indentation fix mnist_tfrecord.py add parallelism option mnist_tfrecord.py pep8 Fix mnist_tfrecord.py runtime errors mnist_tfrecord.py added (keras-team#7061, keras-team#7072, keras-team#6928, keras-team#7046)
* fit_steps_per_epoch: removed extraneous line mnist_tfrecord.py add coordinator mnist_tfrecord.py fix key missing lines mnist_tfrecord.py loss defaults to None in compile() lower batch size and epochs mnist_tfrecord.py indentation fix mnist_tfrecord.py add parallelism option mnist_tfrecord.py pep8 Fix mnist_tfrecord.py runtime errors mnist_tfrecord.py added (keras-team#7061, keras-team#7072, keras-team#6928, keras-team#7046) # Conflicts: # examples/mnist_tfrecord.py
* generic_utils.py don't crash when dealing with batched data * Progbar() unit test * mnist_tfrecord.py added (#7061, #7072, #6928, #7046) * Fix mnist_tfrecord.py runtime errors * mnist_tfrecord.py pep8 * mnist_tfrecord.py add parallelism option * reorder inputs * mnist_tfrecord.py indentation fix * lower batch size and epochs * loss defaults to None in compile() * mnist_tfrecord.py * model.fit(steps_per_epoch) added * added _check_num_samples for cases when batch_size does not apply * fix test failures * remove inaccurate warning * improved fit(steps_per_epoch) with separate internal epoch loop in _fit_loop * fit(steps_per_epoch) initial validation support * training.py pep8 * mnist_tfrecord.py fix key missing lines * mnist_tfrecord.py add coordinator * removed extraneous line * mnist_tfrecord.py and training.py clean up based on review (#7113) * mnist_tfrecord.py extended description * training.py fix test error * mnist_tfrecord.py and training.py fixed review comments, docs, and error messages (#7113) * training.py fix unit test error for steps_per_epoch * fix docstring comments from review (#7113) * training.py improve docstrings and error case
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
This would need to be redone due to changes on master and I've run out of cycles to keep it up to date, closing for now. If others are interested in incorporating similar changes please let me know and I'll be happy to help. |
This is the final item in the PR chain necessary to support input tensors. Here is an overview of what will be supported:
The combined version of these changes (with more detail) is in #6928.
Changes to
class Model(Container)
:_prepare_sample_weights()
to be a distinct function_make_ins()
so backendFunction()
params are created consistentlyNone
in many places_make_function()
so all utilities that create an instance ofbackend.Function()
behave consistently (modulo deliberate / correct differences)Depends on:
#7067, #7066
Additional fixes in:
#7064, #7067, #7068, #7069, #7071, #7072
Tested by:
#7061
Also see the comments by @Dref360 on the equivalent changes. #7046 (review)
Note: travis failure will be resolved once dependencies above are merged