Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Lost-Temple committed Mar 19, 2024
1 parent 21300e2 commit 1c66503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/fate_flow/scheduler/dsl_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def _check_component_valid_names(self):
for component in self.components:
name = component.get_name()
for chk in name:
if chk.isalpha() or chk in ["_", "-"] or chk.isdigit():
if chk.isalpha() or chk in ["_", "-"] or chk.isdigit(): # 组件名只允许字母、数字、下划线、中横
continue
else:
raise NamingFormatError(component=name)
Expand All @@ -191,7 +191,7 @@ def _find_dependencies(self, mode="train", version=1):
raise ComponentInputTypeError(component=name)
else:
self.components[idx].set_input(upstream_input)

# 训练和预测两类job,组件的输入的要求是不同的
if mode == "train":
input_keywords = {"model": "model", "isometric_model": "model", "cache": "cache"}
else:
Expand Down

0 comments on commit 1c66503

Please sign in to comment.