Skip to content

Commit

Permalink
use meaningful func name in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiao-Chenguang committed Oct 28, 2024
1 parent ffcfd5a commit 8041d3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/cuda_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from fedmind.data import ClientDataset


def test_fedavg():
def test_fedavg_cuda():
# 0. Prepare necessary arguments
args = get_config("config.yaml")
args.DEVICE = "cuda"
Expand Down Expand Up @@ -68,4 +68,4 @@ def test_fedavg():


if __name__ == "__main__":
test_fedavg()
test_fedavg_cuda()
4 changes: 2 additions & 2 deletions examples/fedprox_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from fedmind.data import ClientDataset


def test_fedavg():
def test_fedprox():
# 0. Prepare necessary arguments
args = get_config("config.yaml")
args.PROX_MU = 0.1
Expand Down Expand Up @@ -59,4 +59,4 @@ def test_fedavg():


if __name__ == "__main__":
test_fedavg()
test_fedprox()

0 comments on commit 8041d3a

Please sign in to comment.