Skip to content

Commit

Permalink
Change template_script to big parameter (deepmodeling#214)
Browse files Browse the repository at this point in the history
Signed-off-by: zjgemi <liuxin_zijian@163.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
zjgemi and pre-commit-ci[bot] authored Apr 17, 2024
1 parent 87f495d commit 37874a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dpgen2/op/prep_dp_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class PrepDPTrain(OP):
def get_input_sign(cls):
return OPIOSign(
{
"template_script": Union[dict, List[dict]],
"template_script": BigParameter(Union[dict, List[dict]]),
"numb_models": int,
}
)
Expand Down
3 changes: 2 additions & 1 deletion dpgen2/superop/prep_run_dp_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
OP,
OPIO,
Artifact,
BigParameter,
OPIOSign,
PythonOPTemplate,
Slices,
Expand Down Expand Up @@ -76,7 +77,7 @@ def get_input_sign(cls):
def get_output_sign(cls):
return OPIOSign(
{
"template_script": List[dict],
"template_script": BigParameter(List[dict]),
}
)

Expand Down

0 comments on commit 37874a8

Please sign in to comment.