Skip to content

Commit bdbbe23

Browse files
committed
[Example] Expose compact GAE cat dimension
ghstack-source-id: 701c4e1 Pull-Request: #3775
1 parent 2fb54f4 commit bdbbe23

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

examples/collectors/isaaclab_rnn_ppo_memory.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,12 @@ def parse_args() -> argparse.Namespace:
253253
"'compact' for the compile-friendly compact shifted path."
254254
),
255255
)
256+
parser.add_argument(
257+
"--gae-compact-cat-dim",
258+
choices=["batch", "time"],
259+
default="batch",
260+
help="Concatenation dimension used by GAE shifted='compact'.",
261+
)
256262
parser.add_argument(
257263
"--deactivate-vmap",
258264
action=argparse.BooleanOptionalAction,
@@ -342,6 +348,7 @@ def main() -> None:
342348
value_network=full_value,
343349
average_gae=False,
344350
shifted=gae_shifted,
351+
compact_cat_dim=args.gae_compact_cat_dim,
345352
deactivate_vmap=args.deactivate_vmap,
346353
device=train_device,
347354
)

0 commit comments

Comments
 (0)