Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
Signed-off-by: Yee Hing Tong <[email protected]>
  • Loading branch information
wild-endeavor committed Jul 10, 2024
1 parent 72c3155 commit 790fde2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/flytekit-kf-pytorch/flytekitplugins/kfpytorch/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,9 @@ def spawn_helper(
try:
return_val = fn(**kwargs)
omt = ctx.output_metadata_tracker
logger.warning(f"ARTFELASTIC: 1 {omt}")
om = None
if omt:
om = omt.get(return_val)
logger.warning(f"ARTFELASTIC: 2 {om=}")
except Exception as e:
# See explanation in `create_recoverable_error_file` why we check
# for recoverable errors here in the worker processes.
Expand Down Expand Up @@ -445,9 +443,7 @@ def fn_partial():
for deck in out[0].decks:
if not isinstance(deck, flytekit.deck.deck.TimeLineDeck):
ctx.decks.append(deck)
logger.warning(f"ARTFELASTIC: 3 {out[0]}")
if out[0].om:
logger.warning(f"ARTFELASTIC: 4 Adding back {out[0].om}")
ctx.output_metadata_tracker.add(out[0].return_value, out[0].om)

return out[0].return_value
Expand Down

0 comments on commit 790fde2

Please sign in to comment.