File size: 13,865 Bytes
bd2389a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "1680602759",
        "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=SnowballTarget1 --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": "1680603266"
    },
    "total": 506.56933482199986,
    "count": 1,
    "self": 0.432280487999833,
    "children": {
        "run_training.setup": {
            "total": 0.021324432000028537,
            "count": 1,
            "self": 0.021324432000028537
        },
        "TrainerController.start_learning": {
            "total": 506.115729902,
            "count": 1,
            "self": 0.5364964749950332,
            "children": {
                "TrainerController._reset_env": {
                    "total": 4.194098551000025,
                    "count": 1,
                    "self": 4.194098551000025
                },
                "TrainerController.advance": {
                    "total": 501.2257970380049,
                    "count": 18224,
                    "self": 0.26302950000922465,
                    "children": {
                        "env_step": {
                            "total": 500.96276753799566,
                            "count": 18224,
                            "self": 390.10555433499405,
                            "children": {
                                "SubprocessEnvManager._take_step": {
                                    "total": 110.60417460100496,
                                    "count": 18224,
                                    "self": 1.8897093719990607,
                                    "children": {
                                        "TorchPolicy.evaluate": {
                                            "total": 108.7144652290059,
                                            "count": 18224,
                                            "self": 108.7144652290059
                                        }
                                    }
                                },
                                "workers": {
                                    "total": 0.25303860199664996,
                                    "count": 18224,
                                    "self": 0.0,
                                    "children": {
                                        "worker_root": {
                                            "total": 504.60962970598405,
                                            "count": 18224,
                                            "is_parallel": true,
                                            "self": 270.3927534570005,
                                            "children": {
                                                "run_training.setup": {
                                                    "total": 0.0,
                                                    "count": 0,
                                                    "is_parallel": true,
                                                    "self": 0.0,
                                                    "children": {
                                                        "steps_from_proto": {
                                                            "total": 0.00712452800007668,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.004232450000017707,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 0.002892078000058973,
                                                                    "count": 10,
                                                                    "is_parallel": true,
                                                                    "self": 0.002892078000058973
                                                                }
                                                            }
                                                        },
                                                        "UnityEnvironment.step": {
                                                            "total": 0.04959419200008597,
                                                            "count": 1,
                                                            "is_parallel": true,
                                                            "self": 0.0005835340000430733,
                                                            "children": {
                                                                "UnityEnvironment._generate_step_input": {
                                                                    "total": 0.0003384520000508928,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.0003384520000508928
                                                                },
                                                                "communicator.exchange": {
                                                                    "total": 0.04675490499994339,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.04675490499994339
                                                                },
                                                                "steps_from_proto": {
                                                                    "total": 0.0019173010000486101,
                                                                    "count": 1,
                                                                    "is_parallel": true,
                                                                    "self": 0.00039642999968236836,
                                                                    "children": {
                                                                        "_process_rank_one_or_two_observation": {
                                                                            "total": 0.0015208710003662418,
                                                                            "count": 10,
                                                                            "is_parallel": true,
                                                                            "self": 0.0015208710003662418
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "UnityEnvironment.step": {
                                                    "total": 234.21687624898357,
                                                    "count": 18223,
                                                    "is_parallel": true,
                                                    "self": 9.67428085700169,
                                                    "children": {
                                                        "UnityEnvironment._generate_step_input": {
                                                            "total": 5.35255163899285,
                                                            "count": 18223,
                                                            "is_parallel": true,
                                                            "self": 5.35255163899285
                                                        },
                                                        "communicator.exchange": {
                                                            "total": 188.59121200499385,
                                                            "count": 18223,
                                                            "is_parallel": true,
                                                            "self": 188.59121200499385
                                                        },
                                                        "steps_from_proto": {
                                                            "total": 30.598831747995177,
                                                            "count": 18223,
                                                            "is_parallel": true,
                                                            "self": 5.882953329033398,
                                                            "children": {
                                                                "_process_rank_one_or_two_observation": {
                                                                    "total": 24.71587841896178,
                                                                    "count": 182230,
                                                                    "is_parallel": true,
                                                                    "self": 24.71587841896178
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "trainer_threads": {
                    "total": 2.3349000002781395e-05,
                    "count": 1,
                    "self": 2.3349000002781395e-05,
                    "children": {
                        "thread_root": {
                            "total": 0.0,
                            "count": 0,
                            "is_parallel": true,
                            "self": 0.0,
                            "children": {
                                "trainer_advance": {
                                    "total": 497.4511915359493,
                                    "count": 427279,
                                    "is_parallel": true,
                                    "self": 10.610220061989253,
                                    "children": {
                                        "process_trajectory": {
                                            "total": 295.5945803169601,
                                            "count": 427279,
                                            "is_parallel": true,
                                            "self": 293.9437913789602,
                                            "children": {
                                                "RLTrainer._checkpoint": {
                                                    "total": 1.6507889379998915,
                                                    "count": 4,
                                                    "is_parallel": true,
                                                    "self": 1.6507889379998915
                                                }
                                            }
                                        },
                                        "_update_policy": {
                                            "total": 191.24639115699995,
                                            "count": 38,
                                            "is_parallel": true,
                                            "self": 118.84809072999735,
                                            "children": {
                                                "TorchPPOOptimizer.update": {
                                                    "total": 72.3983004270026,
                                                    "count": 4482,
                                                    "is_parallel": true,
                                                    "self": 72.3983004270026
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "TrainerController._save_models": {
                    "total": 0.15931448900005307,
                    "count": 1,
                    "self": 0.0010161590000734577,
                    "children": {
                        "RLTrainer._checkpoint": {
                            "total": 0.15829832999997961,
                            "count": 1,
                            "self": 0.15829832999997961
                        }
                    }
                }
            }
        }
    }
}