Skip to content

Commit

Permalink
Merge pull request #814 from deepmodeling/zjgemi
Browse files Browse the repository at this point in the history
fix: BigParameter(str) in debug mode
  • Loading branch information
zjgemi authored May 29, 2024
2 parents d626e3e + b4f5452 commit d688249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dflow/python/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def handle_output_parameter(name, value, sign, slices=None, data_root="/tmp"):
with open(data_root + "/outputs/parameters/" + name, "w") as f:
f.write(jsonpickle.dumps(value))
else:
if isinstance(sign, Parameter):
if isinstance(sign, (Parameter, BigParameter)):
sign = sign.type
if sign == str:
with open(data_root + '/outputs/parameters/' + name, 'w') as f:
Expand Down

0 comments on commit d688249

Please sign in to comment.