-
Notifications
You must be signed in to change notification settings - Fork 57
/
test.py
47 lines (38 loc) · 1.27 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import alphastarmini
import torch
from alphastarmini.core.arch import entity_encoder
from alphastarmini.core.arch import scalar_encoder
from alphastarmini.core.arch import spatial_encoder
from alphastarmini.core.arch import arch_model
from alphastarmini.core.arch import action_type_head
from alphastarmini.core.arch import selected_units_head
from alphastarmini.core.arch import target_unit_head
from alphastarmini.core.arch import delay_head
from alphastarmini.core.arch import queue_head
from alphastarmini.core.arch import location_head
from alphastarmini.core.arch import agent
from alphastarmini.core.arch import baseline
from alphastarmini.core.sl import load_pickle
from alphastarmini.core.rl import action
from alphastarmini.core.rl import pseudo_reward
from alphastarmini.core.rl import rl_algo
from alphastarmini.core.rl import rl_loss
if __name__ == '__main__':
print("test init")
entity_encoder.test()
scalar_encoder.test()
spatial_encoder.test()
action_type_head.test()
delay_head.test()
queue_head.test()
selected_units_head.test()
target_unit_head.test()
location_head.test()
action.test()
pseudo_reward.test()
baseline.test()
arch_model.test()
agent.test()
rl_algo.test()
rl_loss.test()
print('test over')