Skip to content

Index with same name in both outer loop and inner loop? #6

Description

@KevinLTT

Hi,
I'm confused with this mpc code. In both outer loop and inner loop, 'i' is used as index. Does this affect the training?

for i in range(0, n, mpc_batch_size):
batch = mpc_helper(cur_obs[i: i + mpc_batch_size], rstate[i: i + mpc_batch_size])
for i in range(len(trajs)):
trajs[i].append(batch[i])

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions