Adapt policy input format

This commit is contained in:
Johannes Fischer
2021-07-20 15:45:15 +02:00
parent 7109afb21f
commit 226a427436
2 changed files with 27 additions and 14 deletions

View File

@@ -15,6 +15,14 @@ def test_deepsets_policy():
ego_state = torch.rand(ns)
relative_state = torch.rand(nv, ns)
path = torch.rand(npath, 2)
path_x = torch.rand(npath)
path_y = torch.rand(npath)
sample = {
"state": ego_state,
"relative_state": relative_state,
"path_x": path_x,
"path_y": path_y,
}
module(ego_state, relative_state, path)
module(sample)