Skip to content

Commit

Permalink
WIP bug(dataset): fix ppl loader data encode typo (#1039)
Browse files Browse the repository at this point in the history
fix ppl loader data encode typo
  • Loading branch information
tianweidut committed Aug 28, 2022
1 parent bd0f3a1 commit aaa00b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/starwhale/api/_impl/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def _starwhale_internal_run_ppl(self) -> None:
try:
# TODO: inspect profiling
pred = self.ppl(
data.data if isinstance(data.data, bytes) else data.data.encode(),
data.data.encode() if isinstance(data.data, str) else data.data,
data_index=data.idx,
data_size=data.data_size,
label_content=label.data,
Expand Down

0 comments on commit aaa00b3

Please sign in to comment.