Skip to content

Commit

Permalink
Merge pull request #5381 from FederatedAI/feature-2.0.0-rc-remove-ml-mpc
Browse files Browse the repository at this point in the history
chore: remove unused code
  • Loading branch information
mgqa34 authored Dec 27, 2023
2 parents c131f49 + 9fbca1a commit e18ef6b
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 1,061 deletions.
4 changes: 3 additions & 1 deletion python/fate/components/core/_cpn_task_mode.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import enum
import os


class TaskMode(enum.Enum):
SIMPLE = "SIMPLE"
DEEPSPEED = "DEEPSPEED"

def __str__(self):
return self.value


def is_deepspeed_mode():
return os.getenv("FATE_TASK_TYPE", "").upper() == TaskMode.DEEPSPEED
return os.getenv("FATE_TASK_TYPE", "").upper() == TaskMode.DEEPSPEED.value


def is_root_worker():
Expand Down
21 changes: 0 additions & 21 deletions python/fate/ml/mpc/__init__.py

This file was deleted.

Loading

0 comments on commit e18ef6b

Please sign in to comment.