Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Convert metric tensor to a numeric value #1732
workingloong added a commit that referenced this pull request
Feb 23, 2020
* Convert metric tensor to a numeric value (#1732) * Convert metric tensor to a numeric value * Fix the evaluation service test * A callback to export the model using TF SavedModel After Training. (#1735) * Add design to support keras callback * add a use case of callback to upload model * Add proposal for on_train_batch_begin|end on ps and worker * Add design to support methods called by use case * Add code snippets for callback example * Add a proposal for the method of callback on the PS * Support calling method of Keras.Callback * export save model by train end callback * Remove callbacks on the master * Remove the codes of on_predict_batch_end * Add test for callbacks * Add unit test for SaveModelExporter callback * Add output argument for worker * Reformat codes by pre-commit * Set embedding dim to 4 * Add callbacks args for unit test * fix the embedding input dim in saved_model exporter test * Clear session before cloning model to train (#1747) * Retry to read records from MAXCOMPUTE (#1755) * Retry to read records from MAXCOMPUTE * polish the docstring * Break the retry when odps io is completed (#1759) * cherry-pick commit of auto generating checkpoint file * Remove the extra "/model_zoo" when copy the model zoo files. (#1757) * Fix the directory to copy model zoo * remove the suffix of model zoo path * fix the checkpoint dir for initialization * Modify the model_zoo path * Add a callback to stop training by max_steps. (#1754) * Add a callback to stop training by max_steps * Add MaxStepsStopping * Place all callbacks into a file to conveniently import * Set completed steps if restore model from checkpoint_dir * Set default value with None to callbacks_list in TaskDispatcher * Reformat codes by pre-commit hooks * Fix the directory to copy model zoo * Clear todo after reporting task to stop training * remove the suffix of model zoo path * Set model version from checkpoint * Reformat code by pre-commit hooks * Add docstring * Remove saved model path before saving * Reformat code * Return if the checkpoit is not valid * Raise an error if checkpoint dir is not None and invalid * Copy _save_model for model handler test
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.