@@ -26,21 +26,23 @@ Inspector Methods
26
26
Constructor
27
27
~~~~~~~~~~~
28
28
29
- .. autofunction :: sdk.inspector.inspector.Inspector.__init__
29
+ .. automodule :: sdk.Inspector
30
+ .. autofunction :: __init__
30
31
31
32
**Example Usage: **
32
33
33
34
.. code :: python
34
35
35
- from executorch.sdk.etdb.inspector import Inspector
36
+ from executorch.sdk import Inspector
36
37
37
38
inspector = Inspector(etdump_path = " /path/to/etdump.etdp" , etrecord_path = " /path/to/etrecord.bin" )
38
39
39
40
40
41
print_data_tabular
41
42
~~~~~~~~~~~~~~~~~~
42
43
43
- .. autofunction :: sdk.inspector.inspector.Inspector.print_data_tabular
44
+ .. automodule :: sdk.Inspector
45
+ .. autofunction :: print_data_tabular
44
46
45
47
.. _example-usage-1 :
46
48
@@ -56,7 +58,8 @@ print_data_tabular
56
58
find_total_for_module
57
59
~~~~~~~~~~~~~~~~~~~~~
58
60
59
- .. autofunction :: sdk.inspector.inspector.Inspector.find_total_for_module
61
+ .. automodule :: sdk.Inspector
62
+ .. autofunction :: find_total_for_module
60
63
61
64
.. _example-usage-2 :
62
65
@@ -74,7 +77,8 @@ find_total_for_module
74
77
get_exported_program
75
78
~~~~~~~~~~~~~~~~~~~~
76
79
77
- .. autofunction :: sdk.inspector.inspector.Inspector.get_exported_program
80
+ .. automodule :: sdk.Inspector
81
+ .. autofunction :: get_exported_program
78
82
79
83
.. _example-usage-3 :
80
84
@@ -113,7 +117,8 @@ of an ``Inspector`` instance, for example:
113
117
114
118
inspector.event_blocks
115
119
116
- .. autoclass :: sdk.inspector.inspector.EventBlock
120
+ .. automodule :: sdk.inspector.inspector
121
+ .. autoclass :: EventBlock
117
122
118
123
``Event `` Class
119
124
~~~~~~~~~~~~~~~
@@ -127,7 +132,8 @@ Access ``Event`` instances through the ``events`` attribute of an
127
132
for event in event_block.events:
128
133
# Do something with each event
129
134
130
- .. autoclass :: sdk.inspector.inspector.Event
135
+ .. automodule :: sdk.inspector.inspector
136
+ .. autoclass :: Event
131
137
132
138
**Example Usage: **
133
139
0 commit comments