File size: 13,882 Bytes
54d6ad8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
{
    "name": "root",
    "metadata": {
        "timer_format_version": "0.1.0",
        "start_time_seconds": "1680593686",
        "python_version": "3.9.16 (main, Dec  7 2022, 01:11:51) \n[GCC 9.4.0]",
        "command_line_arguments": "/usr/local/bin/mlagents-learn ./config/ppo/SnowballTarget.yaml --env=./training-envs-executables/linux/SnowballTarget/SnowballTarget --run-id=SnowballTarget0 --no-graphics",
        "mlagents_version": "0.31.0.dev0",
        "mlagents_envs_version": "0.31.0.dev0",
        "communication_protocol_version": "1.5.0",
        "pytorch_version": "1.11.0+cu102",
        "numpy_version": "1.21.2",
        "end_time_seconds": "1680594149"
    },
    "total": 462.37475733600013,
    "count": 1,
    "self": 0.4319097750008041,
    "children": {
        "run_training.setup": {
            "total": 0.009277898999698664,
            "count": 1,
            "self": 0.009277898999698664
        },
        "TrainerController.start_learning": {
            "total": 461.9335696619996,
            "count": 1,
            "self": 0.6174400700224396,
            "children": {
                "TrainerController._reset_env": {
                    "total": 3.594291900999906,
                    "count": 1,
                    "self": 3.594291900999906
                },
                "TrainerController.advance": {
                    "total": 457.59804526597736,
                    "count": 18204,
                    "self": 0.28739325094238666,
                    "children": {
                        "env_step": {
                            "total": 457.310652015035,
                            "count": 18204,
                            "self": 336.8830677410997,
                            "children": {
                                "SubprocessEnvManager._take_step": {
                                    "total": 120.14058425899884,
                                    "count": 18204,
                                    "self": 1.8732153400314928,
                                    "children": {
                                        "TorchPolicy.evaluate": {
                                            "total": 118.26736891896735,
                                            "count": 18204,
                                            "self": 118.26736891896735
                                        }
                                    }
                                },
                                "workers": {
                                    "total": 0.2870000149364387,
                                    "count": 18204,
                                    "self": 0.0,
                                    "children": {
                                        "worker_root": {
                                            "total": 460.2104844869805,
                                            "count": 18204,
                                            "is_parallel": true,
                                            "self": 210.24460476697004,
                                            "children": {
                                                "run_training.setup": {
                                                    "total": 0.0,
                                                    "count": 0,
                                                    "is_parallel": true,
                                                    "self": 0.0,
                                                    "children": {
                                                        "steps_from_proto": {
                                                            "total": 0.0021629330003634095,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.0006435459999920567,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 0.0015193870003713528,
                                                                    "count": 10,
                                                                    "is_parallel": true,
                                                                    "self": 0.0015193870003713528
                                                                }
                                                            }
                                                        },
                                                        "UnityEnvironment.step": {
                                                            "total": 0.033391349999874365,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.000595921000240196,
                                                            "children": {
                                                                "UnityEnvironment._generate_step_input": {
                                                                    "total": 0.00044008699978803634,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.00044008699978803634
                                                                },
                                                                "communicator.exchange": {
                                                                    "total": 0.03055330799998046,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.03055330799998046
                                                                },
                                                                "steps_from_proto": {
                                                                    "total": 0.001802033999865671,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.00037584299980153446,
                                                                    "children": {
                                                                        "_process_rank_one_or_two_observation": {
                                                                            "total": 0.0014261910000641365,
                                                                            "count": 10,
                                                                            "is_parallel": true,
                                                                            "self": 0.0014261910000641365
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "UnityEnvironment.step": {
                                                    "total": 249.96587972001043,
                                                    "count": 18203,
                                                    "is_parallel": true,
                                                    "self": 10.03333747703573,
                                                    "children": {
                                                        "UnityEnvironment._generate_step_input": {
                                                            "total": 5.443113945979803,
                                                            "count": 18203,
                                                            "is_parallel": true,
                                                            "self": 5.443113945979803
                                                        },
                                                        "communicator.exchange": {
                                                            "total": 203.03460795899719,
                                                            "count": 18203,
                                                            "is_parallel": true,
                                                            "self": 203.03460795899719
                                                        },
                                                        "steps_from_proto": {
                                                            "total": 31.454820337997717,
                                                            "count": 18203,
                                                            "is_parallel": true,
                                                            "self": 6.164677785073309,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 25.290142552924408,
                                                                    "count": 182030,
                                                                    "is_parallel": true,
                                                                    "self": 25.290142552924408
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "trainer_threads": {
                    "total": 2.5167999865516322e-05,
                    "count": 1,
                    "self": 2.5167999865516322e-05,
                    "children": {
                        "thread_root": {
                            "total": 0.0,
                            "count": 0,
                            "is_parallel": true,
                            "self": 0.0,
                            "children": {
                                "trainer_advance": {
                                    "total": 454.1403127939525,
                                    "count": 414224,
                                    "is_parallel": true,
                                    "self": 9.97250109093784,
                                    "children": {
                                        "process_trajectory": {
                                            "total": 251.36970368601487,
                                            "count": 414224,
                                            "is_parallel": true,
                                            "self": 250.5723584690145,
                                            "children": {
                                                "RLTrainer._checkpoint": {
                                                    "total": 0.7973452170003839,
                                                    "count": 4,
                                                    "is_parallel": true,
                                                    "self": 0.7973452170003839
                                                }
                                            }
                                        },
                                        "_update_policy": {
                                            "total": 192.79810801699978,
                                            "count": 90,
                                            "is_parallel": true,
                                            "self": 73.49227985400603,
                                            "children": {
                                                "TorchPPOOptimizer.update": {
                                                    "total": 119.30582816299375,
                                                    "count": 4587,
                                                    "is_parallel": true,
                                                    "self": 119.30582816299375
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "TrainerController._save_models": {
                    "total": 0.12376725700005409,
                    "count": 1,
                    "self": 0.0008746370003791526,
                    "children": {
                        "RLTrainer._checkpoint": {
                            "total": 0.12289261999967493,
                            "count": 1,
                            "self": 0.12289261999967493
                        }
                    }
                }
            }
        }
    }
}