bugfix in deepsets

This commit is contained in:
Johannes Fischer
2021-07-22 18:44:12 +02:00
parent 91d052445e
commit 1c22bd6111
4 changed files with 8 additions and 3 deletions

View File

@@ -9,6 +9,9 @@ with open(config_path, 'r') as cfg:
filestr = 'tests/policies/base_'
batch = pickle.load(open(filestr+'_test_batch.pkl', 'rb'))
batch['relative_state'] = batch['relative_state'].float()
policy = BehaviorCloningPolicy.load_model(config, filestr)
policy.policy = policy.policy.type(batch['state'].dtype)
action = policy(batch)

View File

@@ -25,4 +25,6 @@ def test_deepsets_policy():
"path_y": path_y,
}
module(sample)
module(sample)
# TODO: Refine test to also test for batch data