Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvaladi committed May 7, 2024
1 parent 7a5197e commit 8ebe64d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/mnist-pytorch/client/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
import torch
from model import load_parameters, save_parameters

from data import load_data
from fedn.utils.helpers.helpers import save_metadata

from .data import load_data

dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.abspath(dir_path))

Expand Down
3 changes: 2 additions & 1 deletion examples/mnist-pytorch/client/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
import torch
from model import load_parameters

from data import load_data
from fedn.utils.helpers.helpers import save_metrics

from .data import load_data

dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.abspath(dir_path))

Expand Down

0 comments on commit 8ebe64d

Please sign in to comment.