Profiler¶
- profiler.analyze_profile()¶
Function that analyzes the generated profile found in the ../output directory.
- Returns:
profile_data (data stored in profile file as a dictionary)
stats (stats sorted by cumulative time taken.)
- profiler.gen_np_array()¶
Function that converts the obtained data into a numpy array.
- Returns:
data – Consists of data sorted by cumulative time.
- Return type:
numpy array
- profiler.gen_profile()¶
Function that generates the profile for main() in train.py Outputs a file that places itself in the ../output directory.