Skip to content

Commit 6032436

Browse files
aporialiaofacebook-github-bot
authored andcommitted
Throw more specific error with mitigation steps for Manifold Planner (#3157)
Summary: Pull Request resolved: #3157 Per discussions with APS, we want to throw a more **verbose and helpful** error message in case of Manifold Plan validation failure. Updating this to raise a `PlannerError`, with recommended solutions. Added a TODO: to convert this to a more detailed wiki page, once LP planner (autoplanner) design finalizes. Reviewed By: satgera Differential Revision: D77760805 fbshipit-source-id: 054f557ec14026692a2c51dd90034e3882bd6fc5
1 parent 26e5e6a commit 6032436

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchrec/distributed/planner/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@ class PlannerErrorType(Enum):
773773
STRICT_CONSTRAINTS = "strict_constraints"
774774
PARTITION = "partition"
775775
OTHER = "other"
776+
PLANNER_INPUT_CONTEXT_MISMATCH = "planner_input_context_mismatch"
776777

777778

778779
class PlannerError(Exception):

0 commit comments

Comments
 (0)