-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues 402 update example mnist (#422)
* fix #402 Modify the example mnist to make it meet the new usage requirements of "_get_features_and_labels_from_input_fn" and update docs * remove debug code * add mnist test.sh and update quick_start.md
- Loading branch information
Showing
4 changed files
with
75 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
export CUDA_VISIBLE_DEVICES="" | ||
|
||
python make_data.py | ||
|
||
python leader.py --local-addr=localhost:50051 \ | ||
--peer-addr=localhost:50052 \ | ||
--data-path=data/leader \ | ||
--checkpoint-path=log/checkpoint \ | ||
--save-checkpoint-steps=10 & | ||
|
||
python follower.py --local-addr=localhost:50052 \ | ||
--peer-addr=localhost:50051 \ | ||
--data-path=data/follower/ \ | ||
--checkpoint-path=log/checkpoint \ | ||
--save-checkpoint-steps=10 | ||
|
||
wait | ||
|
||
rm -rf data log | ||
echo "test done" |