Questions tagged [pysyft]
39 questions
4
votes
3 answers
AttributeError: type object 'Tensor' has no attribute 'fft'
when I import syft, the following error occured:
AttributeError: type object 'Tensor' has no attribute 'fft'
I followed the PySyft Doc installing syft.
I tried import syft on both Ubuntu 18.04 and Google Colab environment. Both had the same…

nlite
- 53
- 7
3
votes
1 answer
how "data" and "target" are choosen in a federated learning? (PySyft)
i can't understand how in function train() below, the variable (data, target) are choosen.
def train(args, model, device, federated_train_loader, optimizer, epoch):
model.train()
for batch_idx, (data, target) in…

AleSsAnDrOll3991
- 31
- 1
- 2
3
votes
0 answers
Federated learning using custom model in Pytorch/Pysyft
I am trying to build a federated learning model. In my scenario, I have 3 workers and an orchestrator. The workers start the training and at the end of each training round, the models are being sent to the orchestrator, the orchestrator calculates…

Niki Papagora
- 31
- 4
2
votes
2 answers
ImportError: DLL load failed while importing lib with importing syft in vscode
I create a new environment (my_syft env) with conda and python 3.9.7 and install syft 0.5.0.
Then I check the installation of my module and it's seem that the installations pass correctly
C:\Users\tamir>conda activate my_syft_env
…

Tamir Gabay
- 21
- 1
- 2
2
votes
0 answers
PySyft Worker overfitting
I try to train a image classification (cifar10) with pysyft. My trainsetup has 10 workers where every worker gets betwen 800 and 1200 images of the dataset.
My Problem is that after about 250-300 epochs, the train loss is at about 0.005 and the…

Oli Kuroh
- 123
- 2
- 8
2
votes
1 answer
ModuleNotFoundError: No module named 'syft' (PySyft)
i install Pysyft using this :
conda create -n pysyft python=3
conda activate pysyft
activate pysyft" instead "
pip install syft
and yet when i try to import the library
from syft.frameworks.torch.differential_privacy import pate
it's show me…

Mohammed zain
- 21
- 1
- 3
2
votes
1 answer
What does this warning mean in PATE analysis?
Got warning while doing PATE analysis:
Warning: May not have used enough values of l. Increase 'moments' variable and run again.
from syft.frameworks.torch.differential_privacy import pate
data_dep_eps, data_ind_eps =…

Dishin H Goyani
- 7,195
- 3
- 26
- 37
1
vote
0 answers
Error installing Syft 0.2.5 in Colab: subprocess exited with error
I am trying to install Syft version 0.2.5 on Google Colab using the command !pip install syft==0.2.5. However, I am running into an error while installing the scipy dependency. The error message indicates that the subprocess to install the build…

Waleed Farrukh
- 205
- 1
- 10
1
vote
1 answer
!pip install syft==0.8.0.post2 hook = sy.TorchHook(torch) but showing AttributeError: module 'syft' has no attribute 'TorchHook'
I am using google colab to execute the program. Pythoon veersion is 3.10.11
!pip install syft==0.8.0.post2 hook = sy.TorchHook(torch) but showing AttributeError: module 'syft' has no attribute 'TorchHook'
!pip install syft==0.8.0.post2
hook =…

Kamalika
- 11
- 1
1
vote
1 answer
ERROR: Could not find a version that satisfies the requirement torchvision~=0.5.0 (from syft)
Last week iam working with syft==0.2.9 and it was working great!
but this week when i tried to install syft==0.2.9 i have this error
"ERROR: Could not find a version that satisfies the requirement torchvision~=0.5.0 (from syft) (from versions:…

Nwadher
- 11
- 1
1
vote
0 answers
why is api calls from the pysyft library causing a ModuleNotFoundError?
I am trying to work on a federated learning project and I am just at the beginning. I tried to import a class called "BaseDataset" from the pysyft library as shown in the following.
import syft.frameworks.torch.fl.dataset as st
dataset =…

Tomas
- 11
- 1
1
vote
0 answers
Create a sy.BaseDataset from dataloader
I have an image dataset so I load it with pytorch in this manner:
training_dataset = datasets.ImageFolder(path)
train_set = torch.utils.data.DataLoader(training_dataset)
my train_set is a torch.dataloader.DataLoader however I want to get…

seni
- 659
- 1
- 8
- 20
1
vote
1 answer
AttributeError: module 'syft' has no attribute 'FederatedDataLoader'
I have just started using pysyft to implement federated-learning. While following one of the tutorials, I got stuck on an error:
Code which I have used:
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as…

onapte
- 217
- 2
- 8
1
vote
0 answers
Print the values of torch tensor in created by pysyft paillier encryption
I am trying to get the actual encrypted values from the encrypted tensor. How can I get the values, it prints the object.

bimal karki
- 411
- 1
- 4
- 4
1
vote
2 answers
AttributeError: module 'syft' has no attribute 'TorchHook'
Please seeking help from expert: When I am using pysyft library in python I am getting this error (
AttributeError: module 'syft' has no attribute 'TorchHook')
Here is my code screenshot
[1]: https://i.stack.imgur.com/rPxWw.png
my environment…

Shahedul Islam
- 65
- 1
- 7