Skip to content

Commit 77e8b52

Browse files
Ruilin Chenfacebook-github-bot
authored andcommitted
Fix ph_key issue with trec pipeline (#2363)
Summary: Pull Request resolved: #2363 Fix ph_key issue by: 1. make ph_key for TrainModelInput to be model_input.id_list_features["defalut"] 2. handles parsing in trec utils. Reviewed By: malaybag Differential Revision: D62160686 fbshipit-source-id: 5795926021e591fa72e23a32f8050c898da641fb
1 parent bc6957d commit 77e8b52

File tree

1 file changed

+2
-1
lines changed
  • torchrec/distributed/train_pipeline

1 file changed

+2
-1
lines changed

torchrec/distributed/train_pipeline/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,8 @@ def _get_node_args_helper(
777777
# pyre-ignore[16]
778778
ph_key: str = child_node.ph_key
779779
# example: ph_key = 'event_id_list_features_seqs[marketplace]'
780-
ph_keys = ph_key.split("[")
780+
ph_key = ph_key.replace("[", ".")
781+
ph_keys = ph_key.split(".")
781782
for key in ph_keys:
782783
if "]" in key:
783784
arg_info.input_attrs.append(key[:-1])

0 commit comments

Comments
 (0)