This commit is contained in:
Arec
2021-07-26 07:52:19 -07:00
4 changed files with 10 additions and 10 deletions

View File

@@ -41,7 +41,7 @@ def test_phi():
y = phi(torch.rand(input_dim))
y = phi(torch.rand(7,7,7,input_dim))
assert len(phi.parameters() > 0)
assert len(list(phi.parameters())) > 0
def test_deepsets():
m = ds.DeepSetsModule.from_config(ds_config)

View File

@@ -7,7 +7,7 @@ with open(config_path, 'r') as cfg:
config = json5.load(cfg)
def test_deepsets_policy():
module = DeepSetsPolicy(config["ego_state"], config["deepsets"], config["path_encoder"], config["head"])
module = DeepSetsPolicy(config)
ns = 5
nv = 7

View File