Unknown type torch.Tensor, caused by mismatching decomposers #2167
-
Hi, I have changed my code using the following example:
''' |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
@falibabaei can you paste your config_fed_server and config_fed_client for this job ? |
Beta Was this translation helpful? Give feedback.
-
I used the job template sag and only changed the name of the network. ./jobs/client_api/app/custom -f config_fed_client.conf app_script=brain_tumor_client.py -f config_fed_server.conf model_class_path=net.TumorNet
MY CLIENT CONFIG: format_version = 2 MYSERVER CONFIG: format_version = 2 |
Beta Was this translation helpful? Give feedback.
-
@YuanTingHsieh can you look into this ? |
Beta Was this translation helpful? Give feedback.
-
Looking at the log, looks like error is due to mismatach decomposers. is it possible due to you have two different version of NVFLARE where the decomposer has changed from one version to another. Let's try this:
|
Beta Was this translation helpful? Give feedback.
-
@falibabaei thanks for the logs, how do you run your system? Have you tried running the example following https://github.com/NVIDIA/NVFlare/tree/main/examples/hello-world/ml-to-fl/pt#the-decorator-use-case ? |
Beta Was this translation helpful? Give feedback.
Hi,
I found out that the error cames from the evaluation function!! I used torch.sum to calculate the accuracy and it seems that this should not be the case
Thanks for your help :)
Still, there is a small problem. I can not see my training logs and prints in the log.txt. The model is trained and saved, but the log does not show any of my prints during training
log.txt