The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

AI::MXNet::Profiler - Optional profiler feature.

DESCRIPTION

Optional profirer.

profiler_set_config

Set up the configure of profiler.
Parameters
----------
kwargs : hash ref
Indicates configuration parameters with key/value pairs, listed below
profile_symbolic : boolean, whether to profile symbolic operators
profile_imperative : boolean, whether to profile imperative operators
profile_memory : boolean, whether to profile memory usage
profile_api : boolean, whether to profile the C API
file_name : string, output file for profile data
continuous_dump : boolean, whether to periodically dump profiling data to file
dump_period : float, seconds between profile data dumps

profiler_set_state

Set up the profiler state to record operator.
Parameters
----------
state : int, optional
Indicting whether to run the profiler, can
be 'stop' - 0 or 'run' - 1. Default is `stop`.

dump_profile

Dump profile and stop profiler. Use this to save profile
in advance in case your program cannot exit normally