Skip to content

Commit

Permalink
Updated 101_torch_cnn_mnist private_attrs
Browse files Browse the repository at this point in the history
Signed-off-by: Ishant Thakare <[email protected]>
  • Loading branch information
ishant162 committed May 31, 2024
1 parent 3632eb6 commit a920ecf
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
train = deepcopy(mnist_train)
test = deepcopy(mnist_test)

train.data = train.data[0::n_collaborators]
train.targets = train.targets[0::n_collaborators]
test.data = test.data[0::n_collaborators]
test.targets = test.targets[0::n_collaborators]
train.data = mnist_train.data[0::n_collaborators]
train.targets = mnist_train.targets[0::n_collaborators]
test.data = mnist_test.data[0::n_collaborators]
test.targets = mnist_test.targets[0::n_collaborators]

col1_private_attributes = {
"train_loader": torch.utils.data.DataLoader(
Expand All @@ -52,10 +52,10 @@
),
}

train.data = train.data[1::n_collaborators]
train.targets = train.targets[1::n_collaborators]
test.data = test.data[1::n_collaborators]
test.targets = test.targets[1::n_collaborators]
train.data = mnist_train.data[1::n_collaborators]
train.targets = mnist_train.targets[1::n_collaborators]
test.data = mnist_test.data[1::n_collaborators]
test.targets = mnist_test.targets[1::n_collaborators]

col2_private_attributes = {
"train_loader": torch.utils.data.DataLoader(
Expand Down

0 comments on commit a920ecf

Please sign in to comment.