Skip to content

Commit 9351509

Browse files
authored
error for load_partition_data_mnist()
How to spedify batch_size in terminal?
1 parent a1588f2 commit 9351509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/examples/simulation/sp_fedavg_mnist_lr_example/torch_fedavg_mnist_lr_custum_data_and_model_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def load_data(args):
2323
test_data_local_dict,
2424
class_num,
2525
) = load_partition_data_mnist(
26-
args.batch_size,
26+
args, 64, # [Origin]: args.batch_size, [Now]: args, 64 [Note]: batch_size=64
2727
train_path=args.data_cache_dir + "MNIST/train",
2828
test_path=args.data_cache_dir + "MNIST/test",
2929
)

0 commit comments

Comments
 (0)